Check if user exists in Active Directory
问题 I am using vb.net and I want to check whether a particular user exists in Active Directory. If it does, I want to display the particular user's details. How to do it? User login credentials are passed via textbox control My code: Dim de As DirectoryEntry = GetDirectoryEntry() Dim ds As DirectorySearcher = New DirectorySearcher(de) ds.Filter = "(&(objectClass=txt1.text))" ' Use the FindAll method to return objects to SearchResultCollection. results = ds.FindAll() Public Shared Function