mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[GH-ISSUE #110] Keycloak unable to bind to directory #46
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#46
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 @nbently on GitHub (Dec 21, 2021).
Original GitHub issue: https://github.com/lldap/lldap/issues/110
Probably doing something wrong, however when I attempt to set up Keycloak to pull users in, I wind up with the following error message when attempting to test authentication with the admin user. I can successfully get Keycloak to connect, however.
@nitnelave commented on GitHub (Dec 21, 2021):
Did you have a look at the recommended configuration in https://github.com/nitnelave/lldap/blob/main/example_configs/keycloak.md ?
If that's not working, can you post your config (screenshot for instance)?
@nbently commented on GitHub (Dec 22, 2021):
I did indeed, but perhaps I missed something. Here's a screenshot of the config in Keycloak (actual domain omitted). I used an env variable to modify the port as well so it's the default.
@nitnelave commented on GitHub (Dec 22, 2021):
Hmm... Could you start LLDAP with
--verboseand paste the logs? Or at least the ldap query that fails and the error message. Feel free to send it to me privately on discord if you don't want to display it publicly.@nbently commented on GitHub (Dec 22, 2021):
Sure! What might be the best way to start LLDAP w/the verbose flag when using the container?
@nitnelave commented on GitHub (Dec 22, 2021):
I'm not at my computer right now, but I think you can just add in the dockerfile
command: --verbose.For a direct docker command, I'm not sure, but something along these lines
@nbently commented on GitHub (Dec 22, 2021):
Hmm it didn't seem to like that. I may be able to build a custom container with verbose logging enabled, I'll look into it.
@nitnelave commented on GitHub (Dec 23, 2021):
Ah, maybe it replaces the entire command line? In that case it would be:
command: run --config_file /data/lldap_config.toml --verboseOr wait, there should be an option in the config to set verbosity, that's maybe the simplest.
@nbently commented on GitHub (Jan 2, 2022):
That worked! I have some more logs, but not sure how helpful they'll be. This is all of the log lines that are generated when I attempt to "Test authentication" in Keycloak.
Edit: test authentication not connection.
@nitnelave commented on GitHub (Jan 2, 2022):
Thanks for the logs.
Silly question, but did you replace the "dc=domain,dc=tld" with your actual domain and tld? The ones configured in LLDAP?
@nbently commented on GitHub (Jan 2, 2022):
I did apologies for not mentioning that. I removed them from the log lines I posted.
@nitnelave commented on GitHub (Jan 2, 2022):
Can you check the "ldap_base_dn" in the lldap_config.toml ? Make sure it matches exactly the one in the bind request, e.g.:
ldap_base_dn = "dc=example,dc=com"Admin dn:
cn=admin,ou=people,dc=example,dc=comSorry to insist like that, but the code looks right, and I can't make sure you don't have a typo in there because the domain is replaced in your snippets.
Can you make any other service work with LLDAP?
@nbently commented on GitHub (Jan 5, 2022):
🤦♂️ I rechecked the config again & as you suspected, I messed up the first part of my domain name (forgot part of it) in one of the container environment variables. It was right everywhere else; can't believe I missed it! So sorry to have wasted your time.
I can't thank you enough for creating this project & will certainly help add to the example configs as I play around with connecting it to other services, if you'll allow!