ARTIFACTORY: Why LDAP group search may not return all the LDAP groups

AuthorFullName__c
Noffar Levi
articleNumber
000006286
FirstPublishedDate
2024-12-30T18:32:54Z
lastModifiedDate
2025-07-20

ARTIFACTORY: Why LDAP group search may not return all the LDAP groups

Introduction 

In certain scenarios, when searching for LDAP groups under Authentication -> LDAP -> LDAP Group Settings, the search may not return one or more of the configured groups. 

User-added image 

This outcome may be caused by LDAP's pagination limit, which defaults to restricting the number of records returned in a single query to 1000. 
For more details, please refer to the official Microsoft documentation here.

We can confirm this behavior by performing direct searches against the LDAP server. For example:

1. To retrieve the entire group list under a specific DN without specifying a user:
ldapsearch -x -b "ou=Organization,dc=openstack,dc=org" "(objectClass=groupOfNames)"
2.To retrieve the group list that a specific user belongs to under a specific DN:
ldapsearch -x -b "ou=Organization,dc=openstack,dc=org" "(&(objectClass=groupOfNames)(member=cn=User1,ou=Users,ou=Organization,dc=openstack,dc=org))"
Possible workarounds:
  1. Decreasing the search base for the LDAP group settings in Artifactory and adding additional ones.
  2. Increasing the page limitation on the Active Directory side: You may follow this Microsoft Article for adjusting the MaxPageSize attribute based on the total number of LDAP groups set up and re-invoke the group search in Artifactory.