Closed Cadjoe closed 2 years ago
Hello @Cadjoe,
Likely causes for your problems:
For the UI, you would need to expose the VM HTTP port 5000 to the outside with something like –expose 5000:5000
or –expose 127.0.0.1:5000:5000
. See here for examples.
For the LDAP port 389, this is running in an LXC instance, so the docker container will not be able to connect to it. If you can somehow forward it to the LXC host outside (with IPTables or similar), the docker container should be able to use it.
Otherwise, you could try to integrate the docker network with LXC, but unfortunately I do not know and therefore cannot explain the necessary steps, but this looks like a promising point to start.
Hope this helps at least somewhat.
Closing this issue because it is not related to the software, but a deployment question. @Cadjoe, feel free to post updates, but please do not re-open.
Thanks, @dnknth, for the prompt response.
In an ideal environment, the UI and LDAP server must be on the same machine, yeah? What you referenced here, I believe, pertains to the docker network/s, which is then exposed to the docker host network/NIC.
Hello @Cadjoe,
In an ideal environment, the UI and LDAP are not on the same machine. To demonstrate, the docker demo spins up separate containers for each.
What you are experiencing are most likely routing issues between docker, LXC and the host machine.
@dnknth, great work with the ldap-ui!
I've tried your implementation steps and tried to fit them into my environment but I'm having a lot of trouble getting going.
Setup
I have tried to run the container with the following set-up
sudo docker run -e LDAP_URL=ldap://OpenLDAP_Container_IP/ -e BASE_DN=dc=example,dc=com dnknth/ldap-ui
I also tried with the portLDAP_URL=ldap://OpenLDAP_Container_IP:389/
And I get
[2022-06-30 22:08:35 +0000] [1] [INFO] Running on http://0.0.0.0:5000 (CTRL + C to quit)
. Accessing the UI on the VM IP isn't working.Also, I'm having a lot of trouble following the README to set it with an environment. I'd be happy to submit PR to refine it so it's easy to follow and understand.