I am getting the following errors in ssl_error_log when trying to login with AD/LDAP configured:

[Sun Apr 03 14:46:26.039483 2022] [fcgid:warn] [pid 151200:tid 140248315057920] [client 10.113.3.226:57456] mod_fcgid: stderr: PHP Fatal error: Uncaught TypeError: ldap_close(): Argument #1 ($ldap) must be of type resource, bool given in phar:///var/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php:701, referer: https://mydomain/support/scp/plugins.php?id=1
[Sun Apr 03 14:46:26.039524 2022] [fcgid:warn] [pid 151200:tid 140248315057920] [client 10.113.3.226:57456] mod_fcgid: stderr: Stack trace:, referer: https://mydomain/support/scp/plugins.php?id=1
[Sun Apr 03 14:46:26.039533 2022] [fcgid:warn] [pid 151200:tid 140248315057920] [client 10.113.3.226:57456] mod_fcgid: stderr: #0 phar:///var/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(701): ldap_close(), referer: https://mydomain/support/scp/plugins.php?id=1
[Sun Apr 03 14:46:26.039541 2022] [fcgid:warn] [pid 151200:tid 140248315057920] [client 10.113.3.226:57456] mod_fcgid: stderr: #1 /var/www/osTicket/include/pear/PEAR.php(755): Net_LDAP2->_Net_LDAP2(), referer: https://mydomain/support/scp/plugins.php?id=1
[Sun Apr 03 14:46:26.039549 2022] [fcgid:warn] [pid 151200:tid 140248315057920] [client 10.113.3.226:57456] mod_fcgid: stderr: #2 [internal function]: _PEAR_call_destructors(), referer: https://mydomain/support/scp/plugins.php?id=1
[Sun Apr 03 14:46:26.039556 2022] [fcgid:warn] [pid 151200:tid 140248315057920] [client 10.113.3.226:57456] mod_fcgid: stderr: #3 {main}, referer: https://mydomain/support/scp/plugins.php?id=1
[Sun Apr 03 14:46:26.039563 2022] [fcgid:warn] [pid 151200:tid 140248315057920] [client 10.113.3.226:57456] mod_fcgid: stderr: thrown in phar:///var/www/osTicket/include/plugins/auth-ldap.phar/include/Net/LDAP2.php on line 701, referer: https://mydomain/support/scp/plugins.php?id=1

Any guidance anyone can give is greatly appreciated! I've looked through the forums and multiple Google searches, and have been banging my head against the wall with this. Thanks!

More information about my install:
CentOS 8, Apache, MariaDB, PHP 8.0.17
osTicket 1.16.1
ldap extension is enabled
Login works for agent, but not for client.

    @Luterac

    It appears either the information you provided in the plugin is incorrect or there is something going on with the connection. You should check your LDAP logs to see if a connection is attempted and if so what's happening.

    Cheers.

      @Luterac

      Then maybe your search base or something is wrong so when it goes to search users it fails?

      Cheers.

      SELinux is set to Permissive, and my search base is set to the entirety of our AD, since we handle some tickets from outside our college as well. I'm happy to share any other log files if you think there's something that might shine a light, but I haven't found much to explain the issue.

        Luterac

        Check your AD logs to see if a connection attempt was made. This will help narrow down wether it’s a plugin/configuration issue or and AD issue.

        Cheers.

        Write a Reply...