docs: correct LDAP DN for token authentication (#1263)

This commit is contained in:
Jan Christoph Ebersbach 2022-12-16 01:23:17 +01:00 committed by GitHub
parent c69071029a
commit 0b3cb317ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,11 +219,11 @@ kanidm service-account api-token destroy --name admin demo_service 4de2a4e9-e06a
```
Api tokens can also be used to gain extended search permissions with LDAP. To do this you can bind
with a dn of "" (empty string) and provide the api token in the password.
with a dn of `dn=token` and provide the api token in the password.
```shell
ldapwhoami -H ldaps://URL -x -D "" -w "TOKEN"
ldapwhoami -H ldaps://idm.example.com -x -D "" -w "..."
ldapwhoami -H ldaps://URL -x -D "dn=token" -w "TOKEN"
ldapwhoami -H ldaps://idm.example.com -x -D "dn=token" -w "..."
# u: demo_service@idm.example.com
```