Skip to content

Commit b64aaf6

Browse files
Merge pull request #263 from dawnstrider/stable
Added information about port mapping
2 parents 3596917 + 2a5b02b commit b64aaf6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ Run OpenLDAP docker image:
5757

5858
docker run --name my-openldap-container --detach osixia/openldap:1.2.2
5959

60-
This start a new container with OpenLDAP running inside. Let's make the first search in our LDAP container:
60+
Do not forget to add the port mapping for both port 389 and 689 if you wish to access the ldap server from another machine.
61+
62+
docker run -p 389:389 -p 689:689 --name my-openldap-container --detach osixia/openldap:1.2.2
63+
64+
Either command starts a new container with OpenLDAP running inside. Let's make the first search in our LDAP container:
6165

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

0 commit comments

Comments
 (0)