mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[PR #1344] [MERGED] Fix LDAP base scope search to return NoSuchObject for non-existent entries #1267
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#1267
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?
📋 Pull Request Information
Original PR: https://github.com/lldap/lldap/pull/1344
Author: @Copilot
Created: 10/31/2025
Status: ✅ Merged
Merged: 11/16/2025
Merged by: @nitnelave
Base:
main← Head:copilot/fix-ldapsearch-unexpected-return📝 Commits (1)
7d04be4ldap: Fix LDAP base scope search to return NoSuchObject for non-existent entries📊 Changes
1 file changed (+80 additions, -0 deletions)
View changed files
📝
crates/ldap/src/search.rs(+80 -0)📄 Description
LLDAP was returning
Successwith zero entries for base scope searches on non-existent objects, breaking LDAP clients that expect RFC 4511 compliant error codes. This caused issues with Python's ldap library and Ansible's ldap modules.Changes
do_search()to returnLdapResultCode::NoSuchObjectwhen base scope searches return empty resultsThe fix is scoped to base searches only - subtree and one-level searches continue returning success with zero entries as per spec.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.