Update README.md

This commit is contained in:
Marisa 2025-09-25 09:51:13 -04:00
parent da52fb8e93
commit 39ed68857e

View File

@ -19,10 +19,21 @@ REPOSITORY TAG IMAGE ID CREATED SIZE
ldapdock latest 0e4a1521b346 6 hours ago 138MB
```
run into the container to setup openLDAP
You can run into the container in an interactive way already with this command:
```
> docker run -h example.com -i -t ldapdock /bin/bash
```
With -h we are specifying the name of the host, we are using example.com, this is very important.
## _Explaining DN, parentDN, CN, and DC as parameters_
One of the key configuration of LDAP is our "DC" or "parent DN", which to make it easy, in this case \
would be "dc=example,dc=com", if our domain would be for example "ideas.lab.com", the parent DN would be \
"dc=ideas,dc=lab,dc=com". This configuration it's very often passed with the CN (Common Name) \
in concatenation with the DN (Distinguised Name), which is not the same as parent DN, and the result \
it's very simple, for example.com it is DN: "cn=config,dn=example,dn=com", or for ideas.lab.com \
DN: "cn=config,dn=ideas,dn=lab,dn=com".
## _Inside the ldapdock image container_
make sure to use the following command to start openLDAP