Add shell script for creating LDAP user accounts

This commit is contained in:
2020-09-15 13:04:54 +02:00
parent be4d1ca7f4
commit 41319fc5bc
2 changed files with 23 additions and 0 deletions

View File

@@ -14,3 +14,9 @@ $ knife data bag show credentials dirsrv --secret-file .chef/encrypted_data_bag_
```
$ ldapsearch -x -W -D 'cn=Directory Manager' -b "ou=users,dc=kosmos,dc=org" -H "ldaps://ldap.kosmos.org" -v
```
## Shell scripts
Adding a new user account (requires username, email, password):
./scripts/ldap/add_user.sh username user@example.com changeme