Unverified Commit ee9e92b6 authored by Daniel Jiang's avatar Daniel Jiang Committed by GitHub
Browse files

Merge pull request #9157 from phin1x/master

Escape user dn in ldap group search filter
parents 9d37e947 1467f4bb
......@@ -444,7 +444,7 @@ func createGroupSearchFilter(oldFilter, groupName, groupNameAttribute string) st
func createNestedGroupFilter(userDN string) string {
filter := ""
filter = "(&(objectClass=group)(member:1.2.840.113556.1.4.1941:=" + userDN + "))"
filter = "(&(objectClass=group)(member:1.2.840.113556.1.4.1941:=" + goldap.EscapeFilter(userDN) + "))"
return filter
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment