fix: only search LDAP group by name#1724
Conversation
|
@rhafer FYI |
|
@sdwilsh Thanks a lot for your contribution!
Actually this is not a breaking change. According to the LDAP Standards the UUID Syntax (as used for any UUID valued attribute) does not have a substring matching rule defined. So any substring filter for an attribute of a UUID type evaluates to Additionally adding the GroupId to the filter for the group search seems to have been a bug from the beginning. Did doesn't really makes senses. |
rhafer
left a comment
There was a problem hiding this comment.
Thanks again for submitting this fix. It's highly appreciated!
Description
Searching an LDAP group by
entryUUIDdoes not make a lot of sense. This change drops that query.Related Issue
Motivation and Context
As described in the related Issue, my LDAP backend, LLDAP does not support a substring query on
entryUUID, and actually returns an error that completely breaks my ability to add anyone to a Space.This is a breaking change if anybody actually depended on this behavior, but as @rhafer pointed out in the related Issue, other LDAP servers like OpenLDAP doesn't support this query either (but fail with no results), so it is dependent upon the LDAP server that is being used.
How Has This Been Tested?
cd services/graph/pkg/identity && go testTypes of changes
Checklist: