mirror of
https://github.com/rroemhild/docker-test-openldap.git
synced 2026-04-25 15:15:53 +03:00
[GH-ISSUE #7] Use with TestContainers, localhost and custom ldif file #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-test-openldap#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @l0rinc on GitHub (Aug 19, 2019).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/7
Hey,
I've tried a few alternative dockerized ldap images, this one is actually working out of the box with an
planetexpress.com->localhostmapping in/etc/hosts.Is there a better way to be able to use this from TestContainers with
localhost?And is there a convenient way to load our own
ldif, instead of the provided one?Thanks!
@rroemhild commented on GitHub (Sep 9, 2019):
Hi, not sure about the
/etc/hostsmapping, in the past I do not need to map the hostname to access the container from localhost or remote hosts.And to answer your second question, there is no convenient way to load own ldif files. The initial idea for this docker image was to have a fix LDAP setup to run test against it. Maybe that's why it working out of the box 😄
@SamyOteroGlez commented on GitHub (Oct 9, 2019):
You could donwload/clone the repo and add your own .ldif files under
bootstrap/data/, then start (rebuild) the container.I am using docker-compose and following the same ldap structure proposed here. Check below my
docker-composefile, just place it on the root of the project.Then you could add more users using something like
Apache Directory Studio, but if you rebuild/destroy the container the new users will be lost, unless you add them via.ldiffiles described above.Cheers