OS (Ubuntu 20.04) ,osTicket (v1.16.1), Apache (2.4.41), MySQL (10.3.34), PHP (v8.0.16), LDAP Plug-in (v0.6.2)
I have the same issue and log error when trying to authenticate user via ldap. Login prompt shows 'access denied' and display the log below in /var/log/apache2/osticket_error.log.
PHP Fatal error: Uncaught TypeError: ldap_free_result(): Argument #1 ($ldap) must be of type resource, bool given in phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php:501\nStack trace:\n#0 phar:///var/www/osTicket/upload/in clude/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(501): ldap_free_result()\n#1 /var/www/osTicket/upload/include/pear/PEAR.php(755): Net_LDAP2_Search->_Net_LDAP2_Search() \n#2 [internal function]: _PEAR_call_destructors()\n#3 {main}\n thrown in phar:///var/www/osTicket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php on line 50 1
php8.0-ldap and php-ldap installed and ldap module enabled. Restarted Apache but same errror. 'php -m' does show ldap. Am I missing something? Could someone point me to the right direction?
Appreciated.