mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
docs: correct LDAP DN for token authentication (#1263)
This commit is contained in:
parent
c69071029a
commit
0b3cb317ba
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue