https://github.com/lldap/lldap logo
Michael Brown - Can't login first install?
# troubleshooting
m
Can't login first install?
a
message has been deleted
m
I am trying to get lldap setup. I am using docker-compose and my reverse proxy is caddy. But I can't seem to be able to login. I have tried deleting the users.db but that didn't work. Can I share my compose file and config file here or should just open an issue on github?
Log from portainer:
Copy code
2025-05-23T05:34:41.319701202+00:00  DEBUG    โ”•โ” ๐Ÿ› [debug]:  | status_code: 200
2025-05-23T05:34:41.318816698+00:00  DEBUG    โ”‚     โ”•โ” get_password_file_for_user [ 227ยตs | 27.35% ] user_id: "admin"
2025-05-23T05:34:41.318804926+00:00  DEBUG    โ”‚  โ”•โ” login_start [ 684ยตs | 55.16% / 82.50% ]
2025-05-23T05:34:41.318810877+00:00  INFO     โ”‚     โ”โ” ๏ฝ‰ [info]: OPAQUE login attempt for "admin"
2025-05-23T05:34:41.318781401+00:00  DEBUG    โ”โ” opaque_login_start [ 723ยตs | 4.69% / 87.19% ]
2025-05-23T05:34:41.318706910+00:00  DEBUG    HTTP request [ 829ยตs | 12.81% / 100.00% ] method: "POST" | uri: "/auth/opaque/login/start"
2025-05-23T05:34:32.685290758+00:00  INFO     ๏ฝ‰ [info]: LDAP session end: 2aa2f0e9-c1e7-4517-84b2-d741d065cecc
n
also I use caddy as the reverse proxy if that matters for some reason here is the config
Copy code
users.in.com {
        reverse_proxy lldap:17170
}
n
You can try restarting with force_ldap_user_pass_reset set to true
That will reset the admin password to the one in the config
m
I have tried that also my compose file. Is
LLDAP_LDAP_USER_DN
correct?
Copy code
lldap:
    image: lldap/lldap:2025-05-19
    container_name: lldap
    environment:
      - LLDAP_LDAP_USER_DN=dc=users,dc=in,dc=com
      - TZ=America/Denver
    volumes:
      - /portainer/Files/AppData/lldap/data:/data
   # ports:
     # - "3890:3890"  # DO NOT EXPOSE THIS PUBLICLY
     # - "17170:17170" # web interface
    networks:
    - default
    - caddy_net
    restart: unless-stopped

networks:
  caddy_net:
    external: true
n
Oh, right, LLDAP_LDAP_USER_DN is the (somewhat misnamed) uid of the admin user
It should be "admin" or "bob" or similar
That's what you log in with
m
so I commented out the env in the compose file and just did this in the config
ldap_user_dn = "admin"
now it works. ๐Ÿคฃ I spent way to much time on this maybe I have just been up to long. Now to setup OAUTH2