Improve LDAP example command #154

Merged
greg merged 1 commits from doc/ldap into master 2020-04-20 09:29:39 +00:00

View File

@ -1,6 +1,6 @@
# LDAP (389 Directory Server).
# LDAP (389 Directory Server)
## Credentials
## Credentials
The admin account is `cn=Directory Manager` with the password stored in the
encrypted data bag `admin_password` item
@ -9,8 +9,8 @@ encrypted data bag `admin_password` item
$ knife data bag show credentials dirsrv --secret-file .chef/encrypted_data_bag_secret
```
## Example search:
## Example search (will prompt for password):
```
$ ldapsearch -x -w $password -D 'cn=Directory Manager' -b "ou=users,dc=kosmos,dc=org" -H "ldaps://ldap.kosmos.org" -v
$ ldapsearch -x -W -D 'cn=Directory Manager' -b "ou=users,dc=kosmos,dc=org" -H "ldaps://ldap.kosmos.org" -v
```