root As DirectoryEntry = New DirectoryEntry("LDAP://" + _server, userName, password) Dim user As User = Nothing
search.SearchScope = SearchScope.Subtree
System.NullReferenceException: Object reference not set to an instance of an object at System.DirectoryServices.DirectorySearcher.DoSearch () [0x00000]
at System.DirectoryServices.DirectorySearcher