Update README.md
This commit is contained in:
parent
d983507e99
commit
444cf3b14a
15
README.md
15
README.md
@ -1,7 +1,7 @@
|
|||||||
# ldapdock
|
# ldapdock
|
||||||
**_a configurable container running LDAP_**
|
**_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
|
build ldapdock
|
||||||
```
|
```
|
||||||
@ -28,7 +28,7 @@ start the openLDAP daemon server
|
|||||||
* Starting OpenLDAP slapd [ OK ]
|
* 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
|
> 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)
|
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
|
dn: olcDatabase={1}mdb,cn=config
|
||||||
changetype: modify
|
changetype: modify
|
||||||
replace: olcRootDN
|
replace: olcRootDN
|
||||||
@ -53,17 +53,22 @@ olcRootDN: cn=admin,dc=example,dc=com
|
|||||||
```
|
```
|
||||||
now save this changes in the main database
|
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*_)
|
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
|
dn: olcDatabase={1}mdb,cn=config
|
||||||
changetype: modify
|
changetype: modify
|
||||||
replace: olcRootPW
|
replace: olcRootPW
|
||||||
olcRootPW: {SSHA}hashpwd
|
olcRootPW: {SSHA}hashpwd
|
||||||
```
|
```
|
||||||
now apply our new password for the main database
|
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)
|
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