09-27-2017 09:21 PM
Hi all,
I'm able to successfully login to the APIC with a particular set of credentials via the GUI, but when I try to login via the API I get "Username or password is incorrect - FAILED local authentication".
Below is the request I'm making, along with the response:
Request
URI:
https://[APIC]/api/aaaLogin.json
Body:
{"aaaUser": {"attributes": {"name": "username", "pwd": "password"}}}
Response
{
"totalCount": "1",
"imdata": [
{
"error": {
"attributes": {
"code": "401",
"text": "Username or password is incorrect - FAILED local authentication"
}
}
}
]
}
Is the APIC trying to authenticate this user against the local user store rather than TACACS+?
Solved! Go to Solution.
09-27-2017 09:34 PM
Sorry everyone. I should have read the doco more closely.
"aaaLogin—Sent as a POST message, this method logs in a user and opens a session. The message body contains an aaa:User object with the name and password attributes, and the response contains a session token and cookie. If multiple AAA login domains are configured, you must prepend the user's name with apic:domain\\."
09-27-2017 09:34 PM
Sorry everyone. I should have read the doco more closely.
"aaaLogin—Sent as a POST message, this method logs in a user and opens a session. The message body contains an aaa:User object with the name and password attributes, and the response contains a session token and cookie. If multiple AAA login domains are configured, you must prepend the user's name with apic:domain\\."
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide