HTTP 500 error after entering login information in CA SAM

Document ID : KB000041793
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem: 

After upgrading the PHP environment as part of the CA SAM upgrade users might be unable to login to CA SAM and receive an error 'HTTP 500 Internal Server Error' after entering the correct user credentials.

After reviewing PHP error log the system administrator can see the following error:

php[2928]

PHP Fatal error:  Call to undefined function ldap_connect() in <sam root folder>\app\includes\<tag>\asperalib\ldap.inc on line 75

Environment:  

All CA SAM versions

Cause: 

This error occurs when the system is configured with LDAP authentication type but the extension php_ldap.dll is not enabled in php.ini file or the file php_ldap.dll is missing from the PHP extensions directory.

Resolution:

Review your php.ini file and make sure that the following configuration line is not commented out:

extension=php_ldap.dll

In case it is already enabled and you can still see the error, make sure that the file php_ldap.dll is present in the PHP extensions diretory.

Additional information:

This error can also be seen when the system is first configured with LDAP authentication type and the same solution applies.