[RESOLVED] [2005] Logon User Failure
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.
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")
This did work just fine. I just changed by domain password today ... but that's all that has changed?
Re: [2005] Logon User Failure
Re: [2005] Logon User Failure
Figured it out ... I guess I lied I did change this part of the code
Code:
deSystem.Username = UCase(strGID)
It was trying to authenticate a user that didn't have access.
Thanks all!