Vault/LDAP error - "Decryption failed Code: 5,-8" seen in trace log when testing LDAP configuration and connectivity

Vault/LDAP error - "Decryption failed Code: 5,-8" seen in trace log when testing LDAP configuration and connectivity

96
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:10 PM


Symptom


In some cases LDAP configuration and host connectivity is tested with elevated LDAP debug levels on the vault such as LDAP(14,15).


Upon testing vault's communication to LDAP (via the PVWA's LDAP Integration settings page by clicking the 'Aapply' button) the following error can be seen in the logs:

 

START PE   3517     Administrator[00]                ServiceName=ControlVaultConfigurationConfigurationStream=<?xml version="1.0"...
Exception CALDAPDirectoryFileParmsException occurred in class: STATIC, File name: CALDAPDirectoryFileParms.cpp, Line number: 213. Reason is: Decryption failed Code: 5,-8
Exception CALDAPDirectoryFileParmsException occurred in class: STATIC, File name: CALDAPDirectoryFileParms.cpp, Line number: 376. Reason is: Decryption failed Code: 5,-8
Exception CALDAPDirectoryFileParmsException occurred in class: STATIC, File name: CALDAPDirectoryFileParms.cpp, Line number: 397. Reason is: Decryption failed Code: 5,-8
Exception CALDAPDirectoryFileParmsException occurred in class: STATIC, File name: CALDAPDirectoryFileParms.cpp, Line number: 654. Reason is: Decryption failed Code: 5,-8
Exception CALDAPHostFileParmsException occurred in class: STATIC, File name: CALDAPHostFileParms.cpp, Line number: 93. Reason is: Decryption failed Code: 5,-8
CALDAPConnection::SetContainingDirectory() - Setting LDAP directory cybr.com for host DC01.cybr.com
Exception CALDAPDirectoryFileParmsException occurred in class: STATIC, File name: CALDAPDirectoryFileParms.cpp, Line number: 213. Reason is: Decryption failed Code: 5,-8
Exception CALDAPDirectoryFileParmsException occurred in class: STATIC, File name: CALDAPDirectoryFileParms.cpp, Line number: 376. Reason is: Decryption failed Code: 5,-8
Exception CALDAPDirectoryFileParmsException occurred in class: STATIC, File name: CALDAPDirectoryFileParms.cpp, Line number: 397. Reason is: Decryption failed Code: 5,-8
Exception CALDAPDirectoryFileParmsException occurred in class: STATIC, File name: CALDAPDirectoryFileParms.cpp, Line number: 499. Reason is: Decryption failed Code: 5,-8
Exception CALDAPDirectoryFileParmsException occurred in class: STATIC, File name: CALDAPDirectoryFileParms.cpp, Line number: 654. Reason is: Decryption failed Code: 5,-8
Exception CALDAPHostFileParmsException occurred in class: STATIC, File name: CALDAPHostFileParms.cpp, Line number: 93. Reason is: Decryption failed Code: 5,-8



Environment


Privileged Access Manager (PAM, self-hosted) Vault

Cause


This error is caused by a validation of the BindPassword field in the directory settings, and is thrown when the value is left empty.

 

For connectivity testing, or host updates, we do not need to provide any value in the bind password field. But since we are clicking 'Apply' while leaving the BindPassword parameter blank, the vault is throwing this false validation error, and then continues on to test the host connections.

 

The Bind Password value should only be populated when updating the password.

The new password is then secured in the account pointed with PasswordObjectPath in the VaultInternal safe. The password value is deleted from the LDAPConf.xml file where the BindPassword field will always be kept with an empty value.

 

Due to this behavior, the error is a false negative and should be ignored.



Resolution


This is normal expected behavior that has no effect on the function of the vault or the LDAP integration.

 

If you encounter this error while troubleshooting an LDAP issue, please ignore this block of errors in the trace as it is not related to the issue and should be treated as a false negative.

 

The errors above will show up even when all LDAP connectivity is working as expected.



Actions
  • Print
  • Copy Link

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