Step through the code and I find
string UserNameCreated = UserNameTextBox.Text; DirectoryEntry entry = new DirectoryEntry("LDAP://cfs"); entry.AuthenticationType = AuthenticationTypes.Secure; DirectorySearcher deSearch = new DirectorySearcher(entry); deSearch.Filter = "(&(objectClass=user)(cn=" + UserNameCreated + "))"; SearchResultCollection results = deSearch.FindAll();
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.