Username and password do not match on login
This article explains how to debug the AEM 6.x issue where the username and password do not match on login. To resolve this validate the username, password and check the error logs.
Description :headding-anchor:description
Environment
Adobe Experience Manager 6.x
Issue/Symptoms
When trying to log in to AEM, the error Username and password do not match is returned in a red box on the login screen.
When inspecting the network traffic via a browser debugger, a 403 error response is returned from an Ajax HTTP POST request to this URL:
/libs/granite/core/content/login.html/j_security_check
Resolution :headding-anchor:resolution
To debug and fix this issue, follow the guide below:
Analysis
Step 1: Validate the username, password, and that the user exists
If the issue only happens with one or a few users, then it could be that the wrong usernames or passwords are being used or the users don’t exist in AEM.
A. Check the password:
- Use Chrome browser and open the Developer Tools and select the Network tab in the browser. Then, attempt to log in again.
- Select the POST request ending with
j_security_check
in the URL. - In the lower-right panel of the Headers tab, scroll to the bottom.
- Validate that under Form Data, the password being sent in the
j_password
parameter is correct.
B. Validate that the user exists and reset the password:
- Log in as the admin user.
- Go to the user administration screen.
- Verify that the users exist.
- Create the user if it doesn’t exist or reset the password if it does.
Step 2: Analyze broken authentication handling
If none of the above solves the problem, then:
-
Log in to the AEM server’s OS.
-
Tail or view the
error.log
file. -
View the updates to the log while attempting to log in to AEM.
-
If any errors or warnings are logged, then analyze those warnings. If nothing is logged, then enable a debug log with these settings:
code language-none Log Level: Debug Log File: auth-debug.log Loggers: org.apache.sling.auth com.adobe.granite.auth com.day.crx.security.token
-
At this point, if you are unable to analyze the log messages, and find the root cause, then contact AEM Customer Support.
Cause
The username or password could be incorrect, or there could be an error from the authentication handler during login.