05-05-2020 04:35 AM
Hello ,
Am trying to loign with Postman to APIC with the URL and getting an error with response
{
"totalCount": "1",
"imdata": [
{
"error": {
"attributes": {
"code": "401",
"text": "Tacacs+ Server authentication Denied"
}
}
}
]
I want to use local domain to login , how can use it and guidance:-
POST https://apic-ip-address/api/aaaLogin.json { "aaaUser" : { "attributes" : { "name" : "georgewa", "pwd" : "paSSword1" } } }
as per cisco documentation I tried but not successfull , any guidance.
05-05-2020 05:12 AM
Hi
The username is apic:LOCAL-DOMAIN-NAME\\username, so in your case:
{ "aaaUser" : { "attributes" : { "name" : "apic:LOCAL-DOMAIN-NAME\\georgewa", "pwd" : "paSSword1" } } }
If you did not configure a local domain you can use the default fallback domain:
{ "aaaUser" : { "attributes" : { "name" : "apic:fallback\\georgewa", "pwd" : "paSSword1" } } }
HTH
Marcel
05-05-2020 05:50 AM
Hi Marcel ,
Tried both but still getting same error.
05-05-2020 05:59 AM
Hello @Marcel Zehnder
Thanks for your reply. Is there any difference to use different format in postman. like unicode instead of json. am currently using json.
Thanks in advance for your feedback.
Regards
WAQ
05-05-2020 07:00 AM
Hi @DEV1389
Do you have fallback login domain?
Admin > AAA > Login Domains
If not, then create one and select Realm as Local.
Also, you can test the API call with "#"or ":" in username format:
{ "aaaUser" : { "attributes" : { "name" : "apic#fallback\\{{apic_username}}", "pwd" : "{{apic_password}}" } } }
Cheers,
Sergiu
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: