PVWA - AD Query error: ITALD002E Failed to perform LDAP. (Reason: Error performing query "(&(objectClass=group)(|(cn=Firstname.Lastname)))", Code: 36,10)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PVWA - AD Query error: ITALD002E Failed to perform LDAP. (Reason: Error performing query "(&(objectClass=group)(|(cn=Firstname.Lastname)))", Code: 36,10)

L3 Networker

Dear CyberArk Community,

Our company recently migrated our domain controllers to Windows 2022 virtualized with Azure HCI Stack.

Since the migration of the DCs, we receive the error when we try to add a user to a safe in the PVWA:

"ITALD002E Failed to perform LDAP. (Reason: Error performing query "(&(objectClass=group)(|(cn=Firstname.Lastname)))", Code: 36,10)"

 

Performing user administration in the PrivateArk client works perfectly fine and LDAP authentication also works without issues. We use vault version 12.2 and our PVWAs are on version 12.6.

We receive the error only when we want to add a user in the PVWA.

 

I noticed in the error message that the query looks wrong. It's looking for a group but we want to add a user.

# Using this query doesn't return anything as the target is a user, not a group. Get-ADObject -LDAPFilter "(&(objectClass=Group)(|(cn=Firstname Lastname)))"   # Using this query returns the user. Get-ADObject -LDAPFilter "(&(objectClass=User)(|(cn=Firstname Lastname)))"

Does anybody know why the PVWA queries for the wrong object?

1 accepted solution

Accepted Solutions

As described in the knowledge article, we resolved the issue by correcting the "LDAPDirectoryGroupsBaseContext:".

We updated the base context to match the exact domain where the AD vault authentication groups are located.

LDAPDirectoryBaseContext DC=eu,DC=acme,DC=local ... LDAPDirectoryGroupsBaseContext DC=eu,DC=acme,DC=local

 

View solution in original post

10 REPLIES 10

L7 Applicator

Hi @Alexander Piepenhagen​ 

 

The LDAP query being used by the PVWA ((&(objectClass=group)(|(cn=Firstname.Lastname)))) is searching for groups instead of users. In your LDAP query, have you tried objectClass=User instead of objectClass=Group ?

 

The migration to Windows Server 2022 and Azure HCI Stack could have introduced schema changes or minor differences in how the domain controllers respond to LDAP queries.

 

Test the LDAP query manually using a tool like PowerShell or an LDAP browser

 

Also in some environments CN formatting differences may cause queries to fail. If the CN in your query does not match exactly how users are stored in AD, try adjusting your query to,

 

Get-ADObject -LDAPFilter "(&(objectClass=User)(|(sAMAccountName=Firstname.Lastname)))

 

Hope it helps !

L4 Transporter

Hey @Alexander Piepenhagen​ ,

 

Have you tried adding the user with both the new/current and the classic interface? Do both fail or just the the new/current interface?

 

Regards

 

Nathan

Hi @Nathan Southgate​ ,

I just tried in the classical interface and it works now.

I am however sure that my colleagues previously tried the classical interface and it failed there as well.

 

What are the differences between both interfaces?

 

Best regards,

I am not entirely sure but I think the 'new' interface could potentially do an ldap lookup directly to the DC's whereas the classic interface would rely entirely on the vault to do the lookup.

 

You could potentially open up dev tools on your browser and see if there any calls going off to the DC's and failing.

I'm sure when you setup ldap bindings using the new interface it is reliant on there being direct connectivity form the PVWA's to the DC's

Hi @Malhar Vora​ ,

thank you for your response. The query does help but I wonder why the PVWA suddenly changed their LDAP query.

Your last query for 'sAMAccountName' works fine.

 

Can one change the LDAP query the PVWA runs?

L4 Transporter

Hi @Alexander Piepenhagen​ 

 

Since several community members answered your question, could you kindly share if any of these solutions resolved your issue?

If so, could you please mark the appropriate answer as "Select as Best" to assist other community members.

If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.

 

Thank you, Liad

Hi @Liad Domb​ ,

No, while the responses are interesting, they actually didn't resolve the issue.

We plan implement the solution mentioned in this knowledge article (https://community.cyberark.com/s/article/Add-safe-members-in-v10-GUI-fails-with-Failed-to-find-user-x-in-ldap-mapping-y-but-succeed-in-legacy-v9-GUI).

Once implemented, I will provide an update.

Hi @Alexander Piepenhagen​ 

 

You can define the LDAP query on the Vault Directory Mapping using a template.

 

Hope it helps !

As described in the knowledge article, we resolved the issue by correcting the "LDAPDirectoryGroupsBaseContext:".

We updated the base context to match the exact domain where the AD vault authentication groups are located.

LDAPDirectoryBaseContext DC=eu,DC=acme,DC=local ... LDAPDirectoryGroupsBaseContext DC=eu,DC=acme,DC=local

 

  • 1 accepted solution
  • 232 Views
  • 10 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!