Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Logon User Failure

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    100

    Resolved [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?

  2. #2

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    100

    Re: [2005] Logon User Failure

    Any ideas :-(

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    100

    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width