Bump libregraph/lico to latest master

This is need for getting this fix: libregraph/lico#104
This commit is contained in:
Ralf Haferkamp
2023-08-14 12:34:11 +02:00
committed by Ralf Haferkamp
parent 7a7508ffd9
commit 1e625093b6
4 changed files with 6 additions and 6 deletions

View File

@@ -645,7 +645,7 @@ func (b *LDAPIdentifierBackend) baseAndGetFilterFromEntryID(entryID string) (str
filter := ""
for k, values := range values {
for _, value := range values {
filter = fmt.Sprintf("%s(%s=%s)", filter, k, value)
filter = fmt.Sprintf("%s(%s=%s)", filter, k, ldap.EscapeFilter(value))
}
}
if filter != "" {
@@ -666,5 +666,5 @@ func (b *LDAPIdentifierBackend) baseAndGetFilterFromEntryID(entryID string) (str
func (b *LDAPIdentifierBackend) baseAndSearchFilterFromUsername(username string) (string, string) {
// Build search filter with username.
return b.baseDN, fmt.Sprintf(b.searchFilter, username)
return b.baseDN, fmt.Sprintf(b.searchFilter, ldap.EscapeFilter(username))
}