Improve LDAP example command
We should not log passwords in bash history files. This change will prompt the user for the password instead.
This commit is contained in:
parent
4f1bf768ee
commit
73e87f8f45
@ -1,4 +1,4 @@
|
|||||||
# LDAP (389 Directory Server).
|
# LDAP (389 Directory Server)
|
||||||
|
|
||||||
## Credentials
|
## Credentials
|
||||||
|
|
||||||
@ -9,8 +9,8 @@ encrypted data bag `admin_password` item
|
|||||||
$ knife data bag show credentials dirsrv --secret-file .chef/encrypted_data_bag_secret
|
$ 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
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user