CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of ldap
C#
public bool IsADUsernameExistsAndNotDisabled(string userName)
    {
        bool _return = false;
        if (userName.Length > 0)
        {
            string ldapConnection = ConfigurationManager.AppSettings["ADConnection"].ToString();
            string eCrewUserName = ConfigurationManager.AppSettings["ADUserName"].ToString();
            string eCrewUserPassword = ConfigurationManager.AppSettings["ADPassword"].ToString();
 
            DirectoryEntry searchRoot = new DirectoryEntry(ldapConnection, eCrewUserName, eCrewUserPassword);
by nobodybutca   October 07, 2009 @ 12:39am
Tags: ldap, AD, c#
220 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate