-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Hi,
When entry.DN contains a backslash, a parenthesis, an asterisk or a null character, the following query fails because the filter is invalid.
Line 60 in 0ee4caa
| foundGroups, err := conn.Search(fmt.Sprintf("(member:%s:=%s)", LDAPMatchingRuleInChain, entry.DN), []string{""}, 1000) |
You should escape entry.DN using the rules detailed here, paragraph "The String Representation of LDAP Filters": https://ldap.com/ldap-filters/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels