El TecnoBaúl de Kiquenet

Kiquenet boring stories

Working with Active Directory in C#

Posted by kiquenet en 15 enero 2015

Tools

Sysinternals ADExplorer
http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx

LDAP Browser (Softerra)
http://www.ldapadministrator.com/softerra-ldap-browser.htm

Classes .NET

System.DirectoryServices.DirectoryEntry

System.DirectoryServices.AccountManagement.PrincipalContext

Helpers and Snippet C#

http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/all-operations-on-active-directory-ad-using-C-Sharp/

http://stackoverflow.com/questions/23693209/how-to-get-all-the-users-details-from-active-directory-using-ldap

http://www.snippetsource.net/Snippet/109/helper-to-get-properties-of-directoryentry-in-c

https://github.com/KnowMoreIT/CloudPanel-Legacy/blob/967d1739940842deb548bd5867df0223f9deae0e/CloudPanel.Modules.ActiveDirectory/UserPrincipalExt.cs

http://sahanganepola.blogspot.com.es/2009/01/how-to-change-active-directory-user.html

http://stackoverflow.com/questions/1433383/net-ldap-paths-utilities-c

LDAP

Ports: 389 , 636
http://blog.evanmc.com/?p=9

References

Here is AD user attributes reference(in case you would like to get something else). Note: not all attributes

http://www.kouti.com/tables/userattributes.htm

Sources:
http://stackoverflow.com/questions/12623637/cant-get-user-from-directoryentry
http://www.codeproject.com/Questions/446296/LDAP-connection-using-PrincipalContext

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

 
A %d blogueros les gusta esto: