mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[GH-ISSUE #759] Need Help. Invalid Login for Web Interface #279
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#279
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 @vincenciusgeraldo on GitHub (Dec 12, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/759
Describe the bug
I'm sorry to ask this type of question again since there are so many similar issues before but i just can't seems to get it working. I just setup LLDAP on my server using Docker and can't seems to login through interface even though I have been using the correct username and password.
Here's my docker-compose.yml
here's my lldap_config.toml
Expected behavior
I should be able to login using the interface
Logs
Additional context
I have restart the server and remove the container to make sure that config is updated properly but still not working 😞
@nitnelave commented on GitHub (Dec 12, 2023):
Welcome! Sorry that you can't log in, let's try to fix that.
First things first, the config: It's recommended to start by copying the lldap_config.docker_template.toml in the repository as a starting point: you'll have all the values, as well as the documentation for every parameter. In particular, it seems that you don't have the
key_fileorkey_seedconfigured (the recommended one iskey_seed). As a result, the server's private key (used to encrypt the passwords) will be regenerated every time on startup, and written to a file in/app(next to thelldapbinary), which is not persisted. So as soon as you restart, every password is wrong. Same goes for the database, by the way: it will be deleted on every restart with your current configuration.So, start by copying the template and adjust it from there. If you still have trouble, set
verbose = truein the config, and paste (no screenshot) the entire log (including the config dump at the top) after trying to log in. You can put the logs between triple backticks:@vincenciusgeraldo commented on GitHub (Dec 12, 2023):
Hi, thank you for the fast reply. I'm actually already using the docker config and just omitted the other configs.
Here's my full config:
I have added the
key_fileand mount the volume as shown o the compose file above. Is there something i missed?Here's the log
@nitnelave commented on GitHub (Dec 12, 2023):
Yes, you missed the part where I'm asking for the full logs :)
On Tue, 12 Dec 2023, 12:20 Vincencius Geraldo, @.***>
wrote:
@vincenciusgeraldo commented on GitHub (Dec 12, 2023):
I just updated the previous comment but its seem to be late. Let me put the full log again
let me know if you find anything wrong 🙏
@vincenciusgeraldo commented on GitHub (Dec 12, 2023):
Hi, already found out the problem is. It seems that after changing the password on config file, the password on the db is not changed even after restarting the service. I have to delete
users.dbfile ad restart the service. Now it works!Thank you for your time and fast response! I will now close this issue 🙏
@nitnelave commented on GitHub (Dec 12, 2023):
Ah yes! That would be it :)
It's written in the documentation above the password field, but I guess we should also add it to the FAQ