The user name or password is incorrect in Active Directory

Rajaguru Murugesan 0 Reputation points
2023-06-23T05:44:11.48+00:00
The user name or password is incorrect.
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
   at System.DirectoryServices.PropertyValueCollection.PopulateList()
   at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
   at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
   at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer()
   at System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit()
   at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()
   at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx()
   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate)
   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, String identityValue)
   at System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context, String identityValue)


But username & password are correct. But got above issue, please give solution to resolve issue
Windows for business Windows Client for IT Pros Directory services Active Directory
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,746 Reputation points
    2023-06-23T15:08:14.7333333+00:00

    Hello there,

    If you are encountering an "The user name or password is incorrect" error in Active Directory, it typically indicates that the credentials you provided are not valid. Here are a few troubleshooting steps you can take to resolve this issue:

    Double-check the username and password: Ensure that you have entered the correct username and password. Pay attention to capitalization and any special characters.

    Check the account status: Verify that the user account is not locked out or disabled. In Active Directory Users and Computers, locate the user account and check its properties to ensure it is enabled.

    Reset the password: If you suspect that the password may be incorrect, you can try resetting the password for the user account. In Active Directory Users and Computers, right-click on the user account, select "Reset Password," and follow the instructions to set a new password.

    Test with another account: If possible, try logging in with a different user account to verify if the issue is specific to the account or a broader issue.

    Verify domain connectivity: Ensure that the computer where you are trying to log in has proper network connectivity to the Active Directory domain. Check network settings, DNS configuration, and firewall settings to ensure they are correctly configured.

    I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

  2. Anonymous
    2023-06-23T18:04:00.72+00:00

    Please run;

    Dcdiag /v /c /d /e /s:%computername% >C:\dcdiag.log (run on PDC emulator)
    repadmin /showrepl >C:\repl.txt (run on any domain controller)
    ipconfig /all > C:\%computername%.txt (run on EVERY domain controller)
    ipconfig /all > C:\problemworkstation.txt (run on problem pc)

    Also check the domain controller System and Replication (DFS or FRS) event logs for errors since last boot. Post the Event Source and Event IDs of any found. (no evtx files)

    then put unzipped text files up on OneDrive and share a link.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.