Change the LDAP attribute of PhoneNumber and IPPhone using C #

I have a .csv file with EmployeeNumber, TelephoneNumber, IPPhone Number specified in a text file. I need a way to loop through all the entries in a text file and change two phone attributes in LDAP, please help. It is completely frustrating

+3
source share
1 answer

If you are using .NET 3.5 (or you can upgrade it), check the namespace System.DirectoryServices.AccountManagement- a lot is much easier to do.

Read it: Managing directory security principles in the .NET Framework 3.5 and check all the properties discovered by the new UserPrincipalin .NET 3.5.

, , - - Excel, AD/LDAP, .. !

, , !

:, .NET 3.5 ( .NET 2....), :

  • CSV List<CSVRecord> - FileHelpers, ; CSVRecord CSV
  • DirectorySearcher ( -); LDAP, EmployeeId

    • : DirectoryEntry SearchResult
    • .CommitChanges() DirectoryEntry

, , , - .

# 2:
, :

:

Joe Kaplan/Ryan Dunn: .NET

alt text http://ecx.images-amazon.com/images/I/512V652XBSL._SL500_AA300_.jpg

+4
source

Source: https://habr.com/ru/post/1753347/


All Articles