OpenDJ icon indicating copy to clipboard operation
OpenDJ copied to clipboard

HTTP Authentication with custom unique id + password in --user

Open stardev24 opened this issue 3 years ago • 0 comments

We are using earlier Forgerock Opendj v3.0 and in that we have additional custom unique attribute apart from uid.To do basic HTTP authentication we are using --user customuid:password and it is working fine.

But when I try to do same v4.0 I am getting invalid credentials error while calling /api/users/${uid} api.

is this version 4+ supporting custom uid + password for http rest api authentication or not? Please help me to understand

Working in version 3.0 $ curl \ --user abc-123-def:password \ https://opendj.example.com:8443/api/users/abc-123-def Invalid credentials error in v4 $ curl \ --user abc-123-def:password \ https://opendj.example.com:8443/api/users/abc-123-def Here abc-123-def is custom uid we created along with actual uid attribute

stardev24 avatar Aug 24 '22 20:08 stardev24