cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2685
Views
5
Helpful
4
Replies

ACI Postman login with local domain

DEV1389
Level 1
Level 1

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. 

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/aci_multi-site/sw/1x/rest_api_config/b_Cisco_ACI_Multi-Site_REST_Configuration_Guide/b_Cisco_ACI_Multi-Site_REST_Config_Guide_chapter_011.html

 

 

 

4 Replies 4

Marcel Zehnder
Spotlight
Spotlight

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

Hi Marcel , 

 

Tried both but still getting same error. 

 

 

 

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

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

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License