From 39ed68857e0ce89adaa8c8c163cb0267b09e03b0 Mon Sep 17 00:00:00 2001 From: Marisa Date: Thu, 25 Sep 2025 09:51:13 -0400 Subject: [PATCH] Update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6df2cf7..b907394 100644 --- a/README.md +++ b/README.md @@ -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