Add small snippet of documentation how to add manager user to database
This commit is contained in:
parent
1b638f31e7
commit
7ae9974df9
1 changed files with 17 additions and 0 deletions
17
ldap/README
Normal file
17
ldap/README
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
Add manager user to database "dc=example,dc=com":
|
||||
|
||||
# service slapd stop && su -s /bin/bash -l ldap && service slapd start
|
||||
$ cat >manager.ldif
|
||||
# Organizational Role for Directory Manager
|
||||
dn: cn=Manager,dc=example,dc=com
|
||||
objectClass: organizationalRole
|
||||
objectClass: simpleSecurityObject
|
||||
cn: Manager
|
||||
description: Directory Manager
|
||||
userPassword: {SSHA}rvdm3JYMhnIJgqhYkHyI6N8fHPEhx7ki
|
||||
^D
|
||||
$ slapadd -f /etc/openldap/slapd.conf -b "dc=example,dc=com" -f manager.ldif
|
||||
$ slapindex -f /etc/openldap/slapd.conf
|
||||
$ exit
|
||||
#
|
Loading…
Add table
Reference in a new issue