Hi all
I'm just recently receiving the following error: logon failure: unknown user name or bad password
The error comes at the line of code below in red.
This did work just fine. I just changed by domain password today ... but that's all that has changed?Code:Dim deSystem As New DirectoryEntry("LDAP://" + strServerName + "/" + strUserDN + "," + strBaseDN) deSystem.AuthenticationType = AuthenticationTypes.Secure deSystem.Username = UCase(strGID) strSearch = strAccountFilter + "=" + strGID Dim dsSystem As New DirectorySearcher(deSystem, strSearch) dsSystem.SearchScope = SearchScope.Subtree Dim srSystem As SearchResult = dsSystem.FindOne Dim valcol As ResultPropertyValueCollection = srSystem.Properties("mail")


Reply With Quote