PTA - LDAP configured but cannot login to PTA UI with AD user

PTA - LDAP configured but cannot login to PTA UI with AD user

115
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 15:57 PM


Symptom


After installing PTA and configuring global catalog connectivity, users are still unable to login with an LDAP account from the PTA web GUI

Errors similar to the following appear in the diamond.log on the PTA server:-


LOG | [2024-09-12|09:07:24.260|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-10} | com.cyberark.diamond.webapp.auth.LdapAuthenticationProvider.authenticationAttempt(LdapAuthenticationProvider.java:158) - Attempting authentication for user 'user' using LdapAuthenticationProvider..
LOG | [2024-09-12|09:07:24.261|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-10} | com.cyberark.diamond.services.LdapUserServiceImpl.getLdapConnection(LdapUserServiceImpl.java:124) - UserDN: 'user@domain.com' Connection URL: 'ldaps://dc.domain.com:3269'  pre2000: '' 
LOG | [2024-09-12|09:07:24.403|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-10} | com.cyberark.diamond.services.LdapUserServiceImpl.findLdapPtaGroupDn(LdapUserServiceImpl.java:104) - BaseDn: ''
LOG | [2024-09-12|09:07:24.404|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-10} | com.cyberark.diamond.services.ldap.repository.LdapGroupRepo.getGroupOfDomain(LdapGroupRepo.java:83) - Groups DNs: '[]' , user domain: 'domain.com'
LOG | [2024-09-12|09:07:24.405|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-10} | com.cyberark.diamond.webapp.auth.LdapAuthenticationProvider.authenticationAttempt(LdapAuthenticationProvider.java:171) - Authentication for user 'user' using LdapAuthenticationProvider failed. Details: 'authentication_error'
LOG | [2024-09-12|09:07:24.405|UTC] | INFO  | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-10} | com.cyberark.diamond.webapp.auth.LdapAuthenticationProvider.authenticationAttempt(LdapAuthenticationProvider.java:176) - GNL0077I :: Authentication failed for user user.


Environment


11.5;12.2;12.6;13.0;13.2;14.0;14.2 Privileged Access Manager (PAM, self-hosted) PTA PTA

Cause


There is no group configured for LDAP users in AD

Resolution


The following configuration needs to be completed:-

- In AD, create a group LDAP login to PTA and add users
- edit LOCALPARM on the PTA server to include values for these lines:-
    ldap_group_name=<ADGroup name>
    ldap_group_domain=<yourdomain.com>
- run 'service appmgr restart' on the PTA server.

After this, users in the AD group will be able to login via the PTA Web UI.

A successful login will generate similar entries to these in the diamond.log:-


LOG | [2024-09-11|14:55:42.107|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.webapp.auth.LdapAuthenticationProvider.authenticationAttempt(LdapAuthenticationProvider.java:158) - Attempting authentication for user 'user' using LdapAuthenticationProvider..
LOG | [2024-09-11|14:55:42.107|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.LdapUserServiceImpl.getLdapConnection(LdapUserServiceImpl.java:124) - UserDN: 'user@domain.com' Connection URL: 'ldaps://dc.domain.com:3269'  pre2000: '' 
LOG | [2024-09-11|14:55:42.188|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.LdapUserServiceImpl.findLdapPtaGroupDn(LdapUserServiceImpl.java:104) - BaseDn: ''
LOG | [2024-09-11|14:55:42.189|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.PagedLdapSearchStrategy.searchLdap(PagedLdapSearchStrategy.java:37) - Execute paged strategy ldap search with: Filter '(&(objectclass=group)(samaccountname=PTAGroup))', Search Scope '2', Search Attributes '[distinguishedName]'
LOG | [2024-09-11|14:55:42.248|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.LdapGroupRepo$1.mapFromAttributes(LdapGroupRepo.java:70) - distinguishedName value: 'CN=PTAGroup,OU=Groups,DC=domain,DC=com'
LOG | [2024-09-11|14:55:42.249|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.PagedLdapSearchStrategy.searchLdap(PagedLdapSearchStrategy.java:54) - Done executing paged strategy ldap search. Query result size: 1. For paged strategy ldap search with: Filter '(&(objectclass=group)(samaccountname=PTAGroup))', Search Scope '2', Search Attributes '[distinguishedName]'
LOG | [2024-09-11|14:55:42.250|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.LdapGroupRepo.getGroupOfDomain(LdapGroupRepo.java:83) - Groups DNs: '[CN=PTAGroup,OU=Groups,DC=domain,DC=com]' , user domain: 'domain.com'
LOG | [2024-09-11|14:55:42.251|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.LdapGroupRepo.getGroupOfDomain(LdapGroupRepo.java:95) - Compare group domain 'domain.com' to user domain 'domain.com'
LOG | [2024-09-11|14:55:42.251|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.PagedLdapSearchStrategy.searchLdap(PagedLdapSearchStrategy.java:37) - Execute paged strategy ldap search with: Filter '(&(samaccountname=user)(objectclass=person))', Search Scope '2', Search Attributes '[memberOf, distinguishedName]'
LOG | [2024-09-11|14:55:42.312|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.LdapUserRepo$1.mapFromAttributes(LdapUserRepo.java:263) - Username: 'user'. distinguishedName: 'CN=User,OU=Users,DC=domain,DC=com'. memberOf: '[CN=PTAGroup,OU=Groups,DC=domain,DC=com]'. PTA LDAP Authentication group domain: 'domain.com'
LOG | [2024-09-11|14:55:42.313|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.LdapUserRepo$1.mapFromAttributes(LdapUserRepo.java:266) - User and group domains are equal. return memberOf list '[CN=PTAGroup,OU=Groups,DC=domain,DC=com]'
LOG | [2024-09-11|14:55:42.314|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.PagedLdapSearchStrategy.searchLdap(PagedLdapSearchStrategy.java:54) - Done executing paged strategy ldap search. Query result size: 1. For paged strategy ldap search with: Filter '(&(samaccountname=user)(objectclass=person))', Search Scope '2', Search Attributes '[memberOf, distinguishedName]'
LOG | [2024-09-11|14:55:42.314|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.LdapUserRepo.isUserMemberOfGroupDn(LdapUserRepo.java:393) - Compare group DN 'CN=PTAGroup,OU=Groups,DC=domain,DC=com' to user group DN 'CN=PTAGroup,OU=Groups,DC=domain,DC=com'
LOG | [2024-09-11|14:55:42.314|UTC] | DEBUG | {aid=web} | {sid=} | {rid=} | {tid=https-jsse-nio-8443-exec-2} | com.cyberark.diamond.services.ldap.repository.LdapUserRepo.isUserMemberOfGroupDn(LdapUserRepo.java:396) - User 'user' is a member of the group 'CN=PTAGroup,OU=Groups,DC=domain,DC=com'.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000013FECAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail