FileCloud AD login returns HTTP 500 with an undefined PHP LDAP constant
Original Question or Issue:
Environment:
- Product - FileCloud Server
- Version -
- Platform - Windows
Steps to Reproduce:
Error or Log Message:
HTTP FAILURE : SERVER_ERROR 500 https://<filecloud-host>/core/loginguest?op=loginguest
*** ERROR: Undefined constant "LdapRecord\LDAP_OPT_PROTOCOL_VERSION" in file E:\xampp\htdocs\thirdparty\vendor\directorytree\ldaprecord\src\Connection.php on line 159, trace string:
#0 E:\xampp\htdocs\thirdparty\vendor\directorytree\ldaprecord\src\Connection.php(136): LdapRecord\Connection->configure()
Defect or Enhancement Number:
Cause:
Resolution or Workaround:
1. Open the php.ini used by Apache, typically E:\xampp\php\php.ini on this server. Verify that the existing LDAP extension directive (extension=ldap or extension=php_ldap.dll) is uncommented.
2. Go to System Properties → Advanced → Environment Variables. Under System variables, add E:\xampp\php as a separate entry in Path and verify the OpenSSL settings below.
System variable Value
Path entry to add E:\xampp\php
OPENSSL_CONF E:\xampp\php\extras\ssl\openssl.cnf
OPENSSL_MODULES E:\xampp\php\extras\ssl
3. Restart the Apache service on the affected FileCloud web server.
Retry the affected user’s login and verify that the error does not recur.
Notes: