outposts/ldap: fix queries filtering objectClass with non-lowercase values
closes #2756 Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
98485c528e
commit
8deac81364
|
@ -95,7 +95,12 @@ func IncludeObjectClass(searchOC string, ocs map[string]bool) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
return ocs[searchOC]
|
||||
for key, value := range ocs {
|
||||
if strings.EqualFold(key, searchOC) {
|
||||
return value
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func GetContainerEntry(filterOC string, dn string, ou string) *ldap.Entry {
|
||||
|
|
Reference in New Issue