Update README.md
This commit is contained in:
parent
e78fd06c57
commit
28a354cdc9
39
README.md
39
README.md
@ -22,23 +22,48 @@ run into the container setting up the LDAP server and the hostname
|
||||
|
||||
### _Inside the ldapdock image_
|
||||
|
||||
start the openLDAP daemon server
|
||||
```
|
||||
> service slapd start
|
||||
* Starting OpenLDAP slapd [ OK ]
|
||||
```
|
||||
|
||||
edit base configuration of openLDAP server
|
||||
```
|
||||
> vim /etc/ldap/ldap.conf
|
||||
```
|
||||
|
||||
check
|
||||
|
||||
create a openLDAP root user password
|
||||
```
|
||||
> slappasswd
|
||||
New password:
|
||||
Re-enter new password:
|
||||
{SSHA}RXBw4x2g3pxghcp6fEMQvrsBT4EXawsd
|
||||
{SSHA}hashpwd
|
||||
```
|
||||
|
||||
start the openLDAP daemon server
|
||||
### _setup default config database_
|
||||
|
||||
create a file setting up our default rootDN and our *hostname* (change dc=example,dc=com as needed)
|
||||
```
|
||||
> service slapd start
|
||||
* Starting OpenLDAP slapd [ OK ]
|
||||
```
|
||||
# vim change_root.ldif
|
||||
dn: olcDatabase={1}mdb,cn=config
|
||||
changetype: modify
|
||||
replace: olcRootDN
|
||||
olcRootDN: cn=admin,dc=example,dc=com
|
||||
```
|
||||
now save this changes in the main database
|
||||
```
|
||||
ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f change_root.ldif
|
||||
```
|
||||
create a file setting up our default rootPW (_change {SSHA}hashpwd with our previous *password*_)
|
||||
```
|
||||
# vim change_password.ldif
|
||||
dn: olcDatabase={1}mdb,cn=config
|
||||
changetype: modify
|
||||
replace: olcRootPW
|
||||
olcRootPW: {SSHA}hashpwd
|
||||
```
|
||||
now apply our new password for the main database
|
||||
we are done with our slapd root configuration and can begin creating new LDAP directories (.ldif files)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user