ARTIFACTORY: The LDAP user is not automatically added to its LDAP groups in Artifactory

AuthorFullName__c
Shisiya Sebastian
articleNumber
000005858
FirstPublishedDate
2023-09-07T09:33:14Z
lastModifiedDate
2025-07-22

ARTIFACTORY: The LDAP user is not automatically added to its LDAP groups in Artifactory

This article is to guide you in troubleshooting issues with the LDAP user, which is not automatically getting added to the respective LDAP groups in the Artifactory. 

When a user is not automatically added to the group, it will not be able to inherit the permissions assigned to the specific LDAP group.

Why did the LDAP user fail to get added to the group?

The LDAP user will be able to login into the Artifactory, if it is able to authenticate with the LDAP server based on the basic LDAP settings in the Artifactory. However, if it is unable to match any LDAP Group settings configured on the Artifactory, the user won’t be added to the group.

The Possible configuration errors
  • The first possible mistake is in selecting the mapping strategy in the LDAP group settings

When we select the Mapping strategy in LDAP group settings, please consider the below points.

Static: Group objects are aware of their members, however, the users are not aware of the groups they belong to. This means, we define the group members while creating the groups. The groups will be having a multi-value attribute called “member” or “uniquemember” in the Group definition, which contains user DNs of the group members.

Dynamic: User objects are aware of what groups they belong to, but the group objects are not aware of their members. This means, when we create the user, we define, which groups it belongs to. The user will have a multi-value attribute called "memberOf" in its definition, which contains group DNs of the groups the user is a member of.

Active Directory groups can be imported using either a Static mapping strategy or a Dynamic one (Active Directory works for both). However, some of the LDAP servers support only static groups. 
 

  • The second reason is selecting wrong attributes while configuring the LDAP group settings

If you select the attribute which is not defined in your user or group definition, then the search won’t give you the intended results. 
For example, we have following attributes need to be selected for an LDAP Group settings,

  1. Group Member Attribute - For static, the common values are uniqueMember, member, etc. However, for dynamic, the value may be memberOf. 
  2. Group Name attribute - cn
  3. Filter - Here, it defines the objectclass attribute of the particular group. Commonly, it can be (objectClass=groupOfNames), (objectClass=group), or (objectClass=posixGroup), (objectClass=groupOfUniqueNames)etc. 


Please note that, when the GroupMember attribute is not correct, the member won’t be added automatically to the Group. If the objectClass or “Group Name attribute” defined is wrong, you will not be able to search and sync the LDAP Group as well in the Artifactory. 

Dynamic Mapping Example Configurations
1. LDAP Server user configuration

User-added image

2. LDAP Server Group configuration

User-added image

3. Artifactory LDAP Group settings

User-added image

Note: In this example, though the ‘supportech’ group is having a uniqueMember specified, it won’t be added to the ‘supportech’ group in Artifactory as the mapping strategy is ‘dynamic’ and the attribute it will check for is ‘memberOf’. The user added to the group will be ‘test1’.
Static Mapping Example Configurations

1.  LDAP server user configuration

User-added image

2. LDAP server Group configuration

User-added image

3. Artifactory Group settings

User-added image

 
Note: In this example, the only member of the group ‘customersupport’ is the user ‘support1’ as defined by the ‘member’ field.
Summation
If the Artifactory LDAP Group settings are properly configured and the required LDAP groups are imported into the Artifactory, whenever an LDAP user belongs to this group logged in for the first time, it will be added to the respective groups. 
Reference
https://jfrog.com/help/r/jfrog-platform-administration-documentation/ldap