Skip to content

Commit 318ab23

Browse files
author
osixia
authored
Merge pull request #115 from Anton-Latukha/stable
README.md - change deprecated '-h' to now favoured '-H ldap://'
2 parents ae213fc + 52e22d8 commit 318ab23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Run OpenLDAP docker image:
6161

6262
This start a new container with OpenLDAP running inside. Let's make the first search in our LDAP container:
6363

64-
docker exec my-openldap-container ldapsearch -x -h localhost -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin
64+
docker exec my-openldap-container ldapsearch -x -H ldap://localhost -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin
6565

6666
This should output:
6767

@@ -177,11 +177,11 @@ That's it! But a little test to be sure:
177177

178178
Add a new user "billy" on the first ldap server
179179

180-
docker exec $LDAP_CID ldapadd -x -D "cn=admin,dc=example,dc=org" -w admin -f /container/service/slapd/assets/test/new-user.ldif -h ldap.example.org -ZZ
180+
docker exec $LDAP_CID ldapadd -x -D "cn=admin,dc=example,dc=org" -w admin -f /container/service/slapd/assets/test/new-user.ldif -H ldap://ldap.example.org -ZZ
181181

182182
Search on the second ldap server, and billy should show up!
183183

184-
docker exec $LDAP2_CID ldapsearch -x -h ldap2.example.org -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin -ZZ
184+
docker exec $LDAP2_CID ldapsearch -x -H ldap://ldap2.example.org -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin -ZZ
185185

186186
[...]
187187

0 commit comments

Comments
 (0)