hey guys im trying to setup a lldap container i...
# troubleshooting
d
hey guys im trying to setup a lldap container in docker for my authelia service. i use the image lldap/lldap:v0.4.3-alpine and mount a directory from my project folder which contains my config into my container. in addition i save the data in a postgresql database which is connected to a docker volume for persistence. the problem is if i create the containers(lldap and postgre) everything works as planned but if i destroy the container and recreate it im not able to login. i get the message that my credentials are wrong. the users in the database still exists and nothing im able to see changed.
n
Here's a brand new thread for you! Please keep the discussion for this problem in this thread.
d
verbose=true http_host = "0.0.0.0" http_port = 17170 http_url = "http://qa.partybuzz.ch/pw/reset" jwt_secret = "REPLACE_WITH_RANDOM" ldap_base_dn = "dc=qa,dc=partybuzz,dc=ch" ldap_user_dn = "partybuzz" ldap_user_email = "partybuzz.ch@gmail.com" ldap_user_pass = "partybuzz23!!" database_url = "postgres://partybuzz:partybuzz23!!@postgres/ldap"
thats my config
n
LLDAP needs to write a file with the private key to (by default) /data/server_key. If this path is not persisted, it'll create a different key every time and the passwords will not work. You can either persist this file, or use an environment variable or config value to replace it (the key seed in the config)
d
Okay thanks