Escape User DN

Signed-off-by: Fabian Weber <fa.weber@enbw.com>
This commit is contained in:
Fabian 2019-09-19 14:18:06 +02:00 committed by Fabian Weber
parent c360e71d51
commit 1467f4bbb1

View File

@ -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
}