Update README.md

This commit is contained in:
Marisa 2025-09-15 14:36:10 -04:00
parent ae72effbbd
commit f088d44e63

View File

@ -10,7 +10,7 @@ build ldapdock
> docker build -t ldapdock /path/to/dockerfile
```
after build, check the docker image has been created properly with the given REPOSITORY name __*__
__*__ after build, check the docker image has been created properly with the given REPOSITORY name
```
> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
@ -30,7 +30,7 @@ start the openLDAP daemon server
* Starting OpenLDAP slapd [ OK ]
```
edit base configuration of openLDAP server __*__
__*__ edit base configuration of openLDAP server
```
> vim /etc/ldap/ldap.conf
```
@ -43,9 +43,19 @@ Re-enter new password:
{SSHA}hashpwd
```
__*__ checkout the root DN configuration, the oldRootDN that we will setup later
```
> ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config "(olcRootDN=*)" olcRootDN
dn: olcDatabase={0}config,cn=config
olcRootDN: cn=admin,cn=config
dn: olcDatabase={1}mdb,cn=config
olcRootDN: cn=admin,dc=example,dc=com
```
### _Base administrative Tasks for openLDAP_
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 root DN and our *hostname* **(change *dc=example,dc=com* as needed)**
```
> vim change_root.ldif
dn: olcDatabase={1}mdb,cn=config