mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[GH-ISSUE #974] [BUG] Misleading error code when trying to bind without authentication #353
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#353
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 @binsky08 on GitHub (Sep 11, 2024).
Original GitHub issue: https://github.com/lldap/lldap/issues/974
Describe the bug
When trying to bind to the default minimal configured lldap without providing (or with incorrect) authentication data, the response says "Missing DN value" which is certainly helpful for humans, but it also contains the "Naming Violation" message with the error code 64.
In an automatic evaluation of the response, code 64 does not indicate that authentication is missing or incorrect.
The RFC (https://www.rfc-editor.org/rfc/rfc4511#appendix-A.2) describes it like:
Technically it's not completely wrong, but it's misleading and there are better options :)
To Reproduce
Steps to reproduce the behavior:
This ruby snippet can be executed (
ruby snippet.rb) to reproduce the error with a fresh lldap docker container.Expected behavior
Getting the correct errors for missing and wrong authentication data when binding to the ldap server.
I would recommend to use these:
Logs
The provided log contains all 3 authentication requests from the example code above.