Skip to content

Unable to access openldap container #159

Open
@Kavisk

Description

@Kavisk

Hi,

I am new to containers and openldap containers.

I started openldap with the following commands.

docker run --name my-openldap-container --detach osixia/openldap:1.1.9

and did an ldap search as Suggested in the documentation.
docker exec my-openldap-container ldapsearch -x -H ldap://localhost -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin

Got the following output

LDAPv3

base <dc=example,dc=org> with scope subtree

filter: (objectclass=*)

requesting: ALL

example.org

dn: dc=example,dc=org
objectClass: top
objectClass: dcObject
objectClass: organization
o: Example Inc.
dc: example

admin, example.org

dn: cn=admin,dc=example,dc=org
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword:: e1NTSEF9QlNEZmZEVEM1YVNUNFk0NVFVL0RsZHUwcFdzZ0UwdFY=

search result

search: 2
result: 0 Success

numResponses: 3

numEntries: 2

Docker -ps result is as follows
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c9244503d4b9 osixia/openldap:1.1.9 "/container/tool/run" 2 minutes ago Up 2 minutes 389/tcp, 636/tcp my-openldap-container
[

[root@localhost ~]# netstat -atn
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 256 10.229.208.73:22 10.229.208.1:52055 ESTABLISHED
tcp6 0 0 :::111 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:25 :::* LISTEN

There is no process listening on 389 or 636

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions