Update README.md

This commit is contained in:
Marisa 2025-09-15 11:32:34 -04:00
parent d983507e99
commit 444cf3b14a

View File

@ -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 <sup>*</sup>
most important steps to run the daemon server, optional steps are marked with <sup>conditional</sup>
build ldapdock
```
@ -28,7 +28,7 @@ start the openLDAP daemon server
* Starting OpenLDAP slapd [ OK ]
```
<sup>*</sup>edit base configuration of openLDAP server
<sup>conditional</sup> 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)