As a part of this commit, we have added the ability to filter the groups by memberUid OR fullDN.
For example, today, when using STATIC group strategy and searching a group and filter it by username, Artifactory sends similar query as below:
This ability (the OR memberUid=uid) allow Artifactory to support posixGroup because on posixGroup, it is allowed to add the members by their ID instead of the member full distinguished name.
The issue is that some LDAP servers, do not accept the search filter of 'member=shay' (uid value), even when this is a part of the OR search filter, so the LDAP server answering with an error 34 (34 Invalid DN syntax). Of course, some LDAP servers are able to ignore this and use the other part of the OR term, but not all of them.
Instead of creating the OR filter by default, Artifactory should check if the inserted filter includes 'objectClass=posixGroup', and only on this case, allow sending the 'Group Member Attribute' with the user id instead of the full DN.