[
https://issues.apache.org/jira/browse/DIRSERVER-2182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15933425#comment-15933425
]
harish sat commented on DIRSERVER-2182:
---------------------------------------
Hi Emmanuel,
I just applied a workaround in my code, did not change the source.
Block of code looks like this:
DirectoryServiceFactory directoryServiceFactory = new
DefaultDirectoryServiceFactory();
directoryServiceFactory.init(DIRNAME);
service = directoryServiceFactory.getDirectoryService();
dsSession = service.getSession();
LdapServer ldapServer = new LdapServer();
ldapServer.setTransports(new TcpTransport("0.0.0.0", 10389)); // this works
ldapServer.setTransports(new TcpTransport("127.0.0.1", 10389)); // does not work
ldapServer.setTransports(new TcpTransport("192.168.*.*", 10389)); // does not
work
ldapServer.setTransports(new TcpTransport("localhost", 10389)); // does not work
TcpTransport does not accept the loopback IP, other IPs or localhost. Also no
error message is thrown if it is not binding correctly so it gets confusing
when trying to connect to the container from external services.. please let me
know if any additional info is needed on this issue, happy to help!
> Apaches 2.0.0-M23 embedded instance cannot run correctly within docker
> container
> --------------------------------------------------------------------------------
>
> Key: DIRSERVER-2182
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2182
> Project: Directory ApacheDS
> Issue Type: Bug
> Affects Versions: 2.0.0-M23
> Environment: ApacheDS Embedded instance, dropwizard and Docker 2.x
> Reporter: harish sat
> Fix For: 2.0.0-M23
>
>
> While running current instance within docker container, the ldapserver does
> not bind on a specified port, no error message or exception thrown. It works
> fine as a standalone instance but there is a problem within docker container
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)