ldap_bind: Invalid credentials (49) persistent even with correct credentials and -x #1062
Replies: 1 comment 2 replies
-
I am very confused by your lldap.toml. You can start LLDAP with For the configuration, my recommendation is to use the lldap_config.docker_template.toml from the root of the repository, copy it, and then modify the values you want. Now, for the ldapadd. LLDAP is meant to work without much knowledge of LDAP itself, and especially ldif and the various LDAP tools. As such, it's usually not guaranteed to work well with most LDAP directory viewers, schema explorers, management tools and other "powerful" generic LDAP tools. In particular, the modification operations are by and large not supported through LDAP. (Basic user creation and setting passwords are supported). The recommended interface is the web UI that ships with it, the GraphQL interface for scripting, or the community CLI tool lldap-cli. Finally, some more notes: some of the attributes you are trying to set for the user don't exist by default (uidNumber, homeDirectory, ...) You have to create them as custom attributes before you can give them values. I hope that helps! I feel like the project is not exactly what you expected; if you have experience with other LDAP servers, it's quite different (on purpose). Feel free to join the Discord channel if you want to chat about it! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am encountering a persistent "ldap_bind: Invalid credentials (49)" error when trying to add a user with ldapadd, even after following the documentation and various troubleshooting tips. I believe there might be a configuration issue or a bug.
Environment:
Steps to Reproduce:
git clone https://github.com/lldap/lldap.git
git checkout v0.6.2-alpha
cargo build --release
sudo mkdir /etc/lldap
sudo cp target/release/lldap /usr/local/bin/
/etc/lldap/lldap.toml
(content below).sudo mkdir -p /var/lib/lldap
/etc/systemd/system/lldap.service
(content below).sudo systemctl daemon-reload
sudo systemctl enable lldap && sudo systemctl start lldap
ldapadd -H ldap://localhost -v -x -D "cn=admin,dc=example,dc=org" -w "adminPass" -f user.ldif
(the user.ldif file contains basic user information, example below).Expected Behavior:
The user should be added successfully.
Current Behavior:
I receive the error:
Configurations:
my /etc/lldap/lldap.toml:
my /etc/systemd/system/lldap.service:
user.ldif (Example):
Additional Information:
telnet localhost 389
, and the port is open.lldap.toml
.ss -tulnp | grep 389
, and lldap is listening on port 389 (LISTEN state).journalctl -u lldap
, and I do not find relevant errors other than the authentication failure itself.lldap.toml
with a simple password ("test"), but the error persists.nmap localhost -p 389
and the port is open showing ldap service.Question:
I would like to know if there is any additional configuration I am missing, or if t
Thanks
Beta Was this translation helpful? Give feedback.
All reactions