11-09-2018 01:53 AM - edited 03-01-2019 02:59 AM
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>
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,