LDAP AD Bind password in docker compose #1229
Unanswered
aejazuddinam
asked this question in
Q&A
Replies: 1 comment
-
Hi Steve, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @stevespringett ,
Can you please provide some examples how LDAP Configuration password is bind. My scenario is my LDAP password is stored in a docker secret and calling that docker secret inside the DT Docker compose file is not working, its not recognizing the password.
I've tried with different scenarios to call Bind password like this once , the docker secret is defined globally and locally in docker compose file. ( I dont want to harcode the password in compose file)
Added Entrypoint in docker-compose file and commented the original ALPINE password line below.
............
secrets:
ldap:
external: true
services:
dtrack-apiserver:
image: dependencytrack/apiserver
secrets:
- ldap
entrypoint: sh -c "export ALPINE_LDAP_BIND_PASSWORD=$$(cat */ldap) && java $$JAVA_OPTIONS -DdependencyTrack.logging.level=$$LOGGING_LEVEL -jar $$WAR_FILENAME -context $$CONTEXT"
#- ALPINE_LDAP_BIND_PASSWORD=
.............
It says sync completed in log and there are no errors in logs as LDAP is configured but in DT Administration -> Access Management, when i add any ldap user it says INVALID
If i do printenv inside the DT container api-server, all environment variables are there except password
Beta Was this translation helpful? Give feedback.
All reactions