cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

IOSXE RestAPI auth failing

Michal Garcarz
Cisco Employee
Cisco Employee

Hello Team,

CSR1k 16.9.1.

 

I have enabled rest:

aaa authentication login HTTP local

username rest privilege 15 password 0 Krakow123
ip http server
ip http authentication aaa login-authentication HTTP
ip http secure-server

restconf

(i have also tested ip http authentication local or without that command)

 

Then my curls results are the  following:

$ curl -v -X POST https://192.168.1.116/api/v1/auth/token-services -H "Accept:application/json" -u "rest:Krakow123" -d "" --insecure

.......

 HTTP/1.1 411 Length Required

 

Why ?

(i've set content-length to 0 in the request but that did not change anything)

 

I have also tried classic rest API without token and got:

https://{{ip}}/restconf/api/config/native

Response 401:

<errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
    <error>
        <error-tag>access-denied</error-tag>
        <error-type>protocol</error-type>
    </error>
</errors>

 Screen Shot 2018-11-09 at 10.55.27.png

 

Debugs on CSR:

%DMI-5-AUTHENTICATION_FAILED: R0/0: dmiauthd: Authentication failure from 192.168.1.124:0 for rest over http.

 

Why failing ?

Thanks,

Who Me Too'd this topic