L
LLDAP2w ago
Kuaqe

Kuaqe - Hey, am setting up the LLDAP docker con...

Hey, am setting up the LLDAP docker container standalone (before integration), and im having trouble with logging in as admin - Invalid username or password - the /data folder is persistent - both the config.toml file and users.db file are there and populated, but changing the toml doesnt seem to help - server has been restarted several times - usernames used: "admin" "lldap_admin" neither has worked - password has been the same one set using LLDAP_LDAP_USER_PASS var each time i think the environment vars arent being read properly(?)
docker_compose:
lldap:
container_name: lldap
image: lldap/lldap:stable
restart: unless-stopped
networks:
- frigate
# expose:
# - 17170 web ui port
# - 3890 LDAP
# - 6360 LDAPS
volumes:
- ./lldap_data:/data
environment:
- "UID=1000"
- "GID=1000"
- "TZ=Asia/Singapore"
- "LLDAP_JWT_SECRET=blabla"
- "LLDAP_KEY_SEED=blabla"
- "LLDAP_LDAP_USER_PASS=PASSWORD"
- "LLDAP_LDAP_BASE_DN=dc=domain,dc=example"
- "LLDAP_SMTP_OPTIONS__ENABLE_PASSWORD_RESET=true"
- "LLDAP_SMTP_OPTIONS__SERVER=send.ahasend.com"
- "LLDAP_SMTP_OPTIONS__PORT=587"
- "LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION=STARTTLS"
- "LLDAP_SMTP_OPTIONS__USER=UmnS4SpWbE" # The SMTP user, usually your email address
- "LLDAP_SMTP_OPTIONS__PASSWORD=SMTPPASS" # The SMTP password
- "LLDAP_SMTP_OPTIONS__FROM=Kuaqe's Mail Slaves <[email protected]>"
labels:
#traefik labels
networks:
frigate:
external: true
docker_compose:
lldap:
container_name: lldap
image: lldap/lldap:stable
restart: unless-stopped
networks:
- frigate
# expose:
# - 17170 web ui port
# - 3890 LDAP
# - 6360 LDAPS
volumes:
- ./lldap_data:/data
environment:
- "UID=1000"
- "GID=1000"
- "TZ=Asia/Singapore"
- "LLDAP_JWT_SECRET=blabla"
- "LLDAP_KEY_SEED=blabla"
- "LLDAP_LDAP_USER_PASS=PASSWORD"
- "LLDAP_LDAP_BASE_DN=dc=domain,dc=example"
- "LLDAP_SMTP_OPTIONS__ENABLE_PASSWORD_RESET=true"
- "LLDAP_SMTP_OPTIONS__SERVER=send.ahasend.com"
- "LLDAP_SMTP_OPTIONS__PORT=587"
- "LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION=STARTTLS"
- "LLDAP_SMTP_OPTIONS__USER=UmnS4SpWbE" # The SMTP user, usually your email address
- "LLDAP_SMTP_OPTIONS__PASSWORD=SMTPPASS" # The SMTP password
- "LLDAP_SMTP_OPTIONS__FROM=Kuaqe's Mail Slaves <[email protected]>"
labels:
#traefik labels
networks:
frigate:
external: true
some values changed for privacy
Solution:
Stupid question, stupider solution sigh Persisting the /data folder means the admin does not get a password if you start the docker container without the LLDAP_LDAP_USER_PASS ENV variable (which a lot of ppl might do, since its not listed in the sample docker compose) so i had to delete the users.db and recreate it for the admin login to work...
Jump to solution
1 Reply
Solution
Kuaqe
Kuaqe2w ago
Stupid question, stupider solution sigh Persisting the /data folder means the admin does not get a password if you start the docker container without the LLDAP_LDAP_USER_PASS ENV variable (which a lot of ppl might do, since its not listed in the sample docker compose) so i had to delete the users.db and recreate it for the admin login to work Please add this to the I can't log in! section or add the ENV variable to the docker compose example. Thanks!
Want results from more Discord servers?
Add your server