LDAP User Search

How to troubleshoot LDAP configuration

AuthorFullName__c
Valeriy Petrov
articleNumber
000004803
ft:sourceType
Salesforce
FirstPublishedDate
2020-05-11T09:54:53Z
lastModifiedDate
2024-03-10T07:45:51Z
VersionNumber
10

The JFrog Platform / Artifactory performs a search to find the user and obtain the user's DN. The search request is built according to the provided configuration in the LDAP Settings.

1. From the following output, you can see that LDAP User Search returned with 1 result since the user is present in Active Directory. In packet number 2 we see the user DN.

1    10.132.0.88    10.166.0.2    LDAP    134    searchRequest(16) "ou=Users,dc=test,dc=com" wholeSubtree
2    10.166.0.2    10.132.0.88    LDAP    398    searchResEntry(16) "cn=Valeriy Petrov,ou=Users,dc=test,dc=com"
3    10.166.0.2    10.132.0.88    LDAP    82    searchResDone(16) success  [1 result]


User Search request for “valeriyp” in WireShark (Packet 1):

User-added image

User Search response (Packet 2):

User-added image


2. The following example shows a search that did not match any user in Active Directory.

User Search request for “test”, the user “test” is not found in AD, returned “0 results”:

1    10.132.0.88    10.166.0.2    LDAP    130    searchRequest(7) "ou=Users,dc=test,dc=com" wholeSubtree 
2    10.166.0.2    10.132.0.88    LDAP    82    searchResDone(7) success  [0 results]


Request (Packet 1):

User-added image


Response (Packet 2):

User-added image