[
https://issues.apache.org/jira/browse/DIRSERVER-2183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15939387#comment-15939387
]
Stefan Seelmann commented on DIRSERVER-2183:
--------------------------------------------
That 0.0.0.0 won't work is clear, it's only used for in the server
configuration to indicate that it should listen to all interfaces, for the
client it doesn't make sense.
The hostnames configured via docker-compose should work. I can only assume that
the networking between the two containers isn't setup correctly. Can you please
verify with Linux networking tools (ping, nc, telnet) that the client container
can talk to the server container? If it's possible for you can also share the
compose.yml and the Dockerfiles?
> Apacheds 2.00-M23 DefaultPoolableLdapConnectionFactory does not work within
> Docker container
> --------------------------------------------------------------------------------------------
>
> Key: DIRSERVER-2183
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2183
> Project: Directory ApacheDS
> Issue Type: Bug
> Environment: apacheds embedded running as docker instance connecting
> to another apacheds standalone docker. the connection pool is btwn the first
> instance to the second.
> Reporter: harish sat
>
> config.setLdapHost(connectorConfig.get(HOSTNAME));
> config.setLdapPort(Integer.parseInt(connectorConfig.get(PORT)));
> config.setName(connectorConfig.get(USERNAME));
> config.setCredentials(connectorConfig.get(PWD));
> final DefaultPoolableLdapConnectionFactory factory = new
> DefaultPoolableLdapConnectionFactory(config);
> pool = new LdapConnectionPool(factory);
> The above block of code does not take 0.0.0.0 or docker-compose defined
> servernames. it throws back an bind exception.
> let me know if any further info is needed. Thanks!
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)