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 Fatal error: Call to undefined function ldap_connect() in <sam root folder>\app\includes\<tag>\asperalib\ldap.inc on line 75
All CA SAM versions
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.
Review your php.ini file and make sure that the following configuration line is not commented out:
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.
This error can also be seen when the system is first configured with LDAP authentication type and the same solution applies.