diff --git a/README.md b/README.md index b5af5e5..b144965 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # ldapdock **_a configurable container running LDAP_** -most important steps to run the daemon server, steps NOT always neccesary are marked with * +most important steps to run the daemon server, optional steps are marked with conditional build ldapdock ``` @@ -28,7 +28,7 @@ start the openLDAP daemon server * Starting OpenLDAP slapd [ OK ] ``` -*edit base configuration of openLDAP server +conditional edit base configuration of openLDAP server ``` > vim /etc/ldap/ldap.conf ``` @@ -45,7 +45,7 @@ Re-enter new password: create a file setting up our default rootDN and our *hostname* (change dc=example,dc=com as needed) ``` -# vim change_root.ldif +> vim change_root.ldif dn: olcDatabase={1}mdb,cn=config changetype: modify replace: olcRootDN @@ -53,17 +53,22 @@ 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 +> 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 +> 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 +``` +> ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f change_password.ldif +modifying entry "olcDatabase={1}mdb,cn=config" +``` we are done with our slapd root configuration and can begin creating new LDAP directories (.ldif files)