You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our LDAP group memberships are based on DN of users, and one of the fields contains a comma separated value.
e. .g. members:
CN=givenName\, sn,OU=,DC=,DC=****
...
Mapping Organization Teams to LDAP groups doesn't work in this case and we find log messages like:
2022/06/28 07:08:51 ...dap/source_search.go:215:listLdapGroupMemberships() [E] [62baa8f9-2] Failed group search using filter[(member=CN=givenName\, sn,OU=,DC=,DC=***)]: LDAP Result Code 201 "Filter Compile Error": ldap: invalid characters for escape in filter: encoding/hex: invalid byte: U+002C ','
The issue seems to similar to: #9169 (comment)
but the proposed solution, using "\5c," instead of "," can't be applied in this situation.
Gitea Version
1.17.0+rc1 built with GNU Make 4.3, go1.18.3 : bindata, timetzdata, sqlite, sqlite_unlock_notify
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
2022/06/28 07:08:51 ...dap/source_search.go:215:listLdapGroupMemberships() [E] [62baa8f9-2] Failed group search using filter[(member=CN=givenName\, sn,OU=,DC=,DC=***)]: LDAP Result Code 201 "Filter Compile Error": ldap: invalid characters for escape in filter: encoding/hex: invalid byte: U+002C ','
Screenshots
No response
Git Version
n/a
Operating System
docker on linux
How are you running Gitea?
from dockerhub: gitea/gitea:1.17.0-rc1 (0ebbe9daf27d)
Database
SQLite
The text was updated successfully, but these errors were encountered:
Description
Our LDAP group memberships are based on DN of users, and one of the fields contains a comma separated value.
e. .g. members:
CN=givenName\, sn,OU=,DC=,DC=****
...
Mapping Organization Teams to LDAP groups doesn't work in this case and we find log messages like:
2022/06/28 07:08:51 ...dap/source_search.go:215:listLdapGroupMemberships() [E] [62baa8f9-2] Failed group search using filter[(member=CN=givenName\, sn,OU=,DC=,DC=***)]: LDAP Result Code 201 "Filter Compile Error": ldap: invalid characters for escape in filter: encoding/hex: invalid byte: U+002C ','
The issue seems to similar to: #9169 (comment)
but the proposed solution, using "\5c," instead of "," can't be applied in this situation.
Gitea Version
1.17.0+rc1 built with GNU Make 4.3, go1.18.3 : bindata, timetzdata, sqlite, sqlite_unlock_notify
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
2022/06/28 07:08:51 ...dap/source_search.go:215:listLdapGroupMemberships() [E] [62baa8f9-2] Failed group search using filter[(member=CN=givenName\, sn,OU=,DC=,DC=***)]: LDAP Result Code 201 "Filter Compile Error": ldap: invalid characters for escape in filter: encoding/hex: invalid byte: U+002C ','
Screenshots
No response
Git Version
n/a
Operating System
docker on linux
How are you running Gitea?
from dockerhub: gitea/gitea:1.17.0-rc1 (0ebbe9daf27d)
Database
SQLite
The text was updated successfully, but these errors were encountered: