Fatal error: Call to undefined function: ldap_connect()

This error message is indicating that the PHP function ldap_connect() is not defined or not available. This function is used to connect to an LDAP server.

It is likely that the PHP LDAP extension is not installed or not enabled on your server. To fix this, you will need to install the PHP LDAP extension and configure it to be loaded by your PHP installation. The process for doing this will vary depending on your specific server setup, but generally, you will need to install the necessary package and add the appropriate configuration to your php.ini file.

Also, make sure your PHP version is compatible with your PHP-LDAP library version.