954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

User name and password for DirectoryEntry

Hi.

I am using DirectoryEntry(string, string, string) to connect to Active Directory. The user name I used is in LDAP format. password is provided by AD team. May someone tells me what's the format for user name and password.

thanks.

shukuo
Newbie Poster
1 post since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

You can create your new DirectoryEntry object on the fly and pass it to the search object.

DirectorySearcher search = new DirectorySearcher(new DirectoryEntry("LDAP://servername.net", "administrator", "password123$"));
sanch01r
Light Poster
30 posts since Oct 2009
Reputation Points: 10
Solved Threads: 3
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You