Problem:
API to get token fails with error message Incorrect username/password credentials even when the correct credentials (AD account) are provided.
Root case:
This issue happens when the user account belongs to an External Authentication LDAP/AD account group.
Resolution:
The login API body should contain a key value pair like highlighted below:
{
"username": "sample_username",
"password": "sample_password",
"authentication_id": "AD_account_name"
}
The AD_account_name value can be found in the System Management portal:
Navigate to System Management > User Accounts > External Authentication