Skip to content

Commit 5f4030b

Browse files
authored
Merge branch 'main' into fix_equality_matching
2 parents c16ff9b + b58c26e commit 5f4030b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

providers/directory/search.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ func (d *Directory) serveSearch(rw ldap.ResponseWriter, r *ldap.Request) {
9898
if dn := strings.Join(parts[1:], ","); dn != msg.BaseDN {
9999
continue
100100
}
101+
case ldap.ScopeWholeSubtree:
102+
if !strings.HasSuffix(strings.ToLower(e.Dn), strings.ToLower(msg.BaseDN)) {
103+
continue
104+
}
101105
}
102106
if d.skip(&e, msg.BaseDN) {
103107
continue

0 commit comments

Comments
 (0)