I\'ve been stuck for the last couple of hours on an annoying Active Directory bit.
What I\'m trying to accomplish is connect to an Active Directory via LDAP over SSL
As far as I remember This error means that there is a problem with the directory path name.
DirectoryEntry entry = new DirectoryEntry("LDAPS://srventr2.societe.fr:636/DC=societe,DC=fr", "user", "password");
DirectorySearcher searcher = new DirectorySearcher();
searcher.SearchRoot = entry;
searcher.SearchScope = SearchScope.Subtree;
searcher.Filter = "(&(objectCategory=person)(objectClass=user))";
SearchResultCollection results = searcher.FindAll();