Skip to main content

Posts

Showing posts from 2012

Creating User ON AD (Active Directory) by C# programming.

Introduction Microsoft’s Active Directory aka AD is used to manage user, computer and other resources on Domain Cotroller. There are many tools available for managing Active Directory. When it comes to deal with Active directory its headache for many programmers.  There are plenty of sample code available on Microsoft’s MSDN foum. Technical Working with Active directory one has be concern about Network Security, business Rule and Technological constraints. If you are accessing your Active Directory through ASP.Net /MVC Web Application, then you must be sure about the permission at IIS level and Domain Controller Level. For Accessing Active directory protocol used is known as LDAP(Lightweight Directory Access Protocol). Microsoft Provides methods to deal with LDAP in System.DirectoryServices assembly. In  DirectoryServices Assembly a class named DirectoryEntry  used to access Active Directory. This class inherits Component class. By creating instance of this class we cr