Debian 10
Apache 2.4.38
php 7.3.14
osticket v1.12.5-80-gd8eefa1e
LDAP Authentication and Lookup Plugin 0.6.3

Got osTicket up and running nice and easy. Installed, configured, and enabled the LDAP plugin, and things got weird. Set osTicket to show php errors. Most of the time, it spews out

Fatal error: Uncaught Error: Call to a member function bind() on null in phar:///var/www/osticket/include/plugins/auth-ldap.phar/authentication.php:220 Stack trace: #0 phar:///var/www/osticket/include/plugins/auth-ldap.phar/authentication.php(476): LDAPAuthentication->authenticate('laj', '[redacted]') #1 /var/www/osticket/include/class.auth.php(235): ClientLDAPAuthentication->authenticate('laj', '[redacted]') #2 /var/www/osticket/login.php(51): AuthenticationBackend::process('laj', '[redacted]', Array) #3 {main} thrown in phar:///var/www/osticket/include/plugins/auth-ldap.phar/authentication.php on line 220

when I try to log in. Occasionally, it will actually let me in. Sometimes even twice in a row, then it goes back to that same error. If I go in and try to modify the LDAP settings, sometimes it will tell me it can't bind to the LDAP server. Or I try toggling the "Use TLS to communicate with the LDAP server" box off and on, and it'll tell me "TLS could not be started: Connect error: Unable to bind to server." Off and on a few more times, and then the TLS is okay. Maybe it lets me log in once or twice, then we're back to uncaught auth-ldap.phar errors.

LDAP is eDirectory. Our Django boxes have no trouble authenticating consistently.

Since it works at all, I would say that the code works fine. Can you look at the ldap server logs amd see if there is anything logged there?

Write a Reply...