Microsoft has provided developers with a good abstraction to access Active Directory (System.DirectoryServices).The … Using DirectoryServices to access Active Directory User’s Credentials