- Edited
I've installed auth-ldap.phar and it looks like it installs properly against my linux-based ldap host.
When trying to auth, it gives this error:
[Wed May 24 20:24:17.620378 2023] [php:error] [pid 68015] [client 172.18.14.145:59442] PHP Fatal error: Cannot redeclare flatten() (previously declared in /var/www/html/osticket/upload/include/plugins/auth-ldap/authentication.php:3) in phar:///var/www/html/osticket/upload/include/plugins/auth-ldap.phar/authentication.php on line 3
It looks like it's missing ../include/NET/LDAP2.php and other files.
Note: v 1.17 stable, using auth-ldap.phar 0.6.2
Also, additional error:
[Wed May 24 22:15:59.432355 2023] [php:error] [pid 1585] [client 172.18.14.145:61406] PHP Fatal error: Uncaught Error: Call to a member function bind() on null in phar:///var/www/html/osticket/upload/include/plugins/auth-ldap.phar/authentication.php:223\nStack trace:\n#0 phar:///var/www/html/osticket/upload/include/plugins/auth-ldap.phar/authentication.php(479): LDAPAuthentication->authenticate()\n#1 /var/www/html/osticket/upload/include/class.auth.php(341): ClientLDAPAuthentication->authenticate()\n#2 /var/www/html/osticket/upload/login.php(51): AuthenticationBackend::process()\n#3 {main}\n thrown in phar:///var/www/html/osticket/upload/include/plugins/auth-ldap.phar/authentication.php on line 223, referer: http://osticket.foo.comi/login.php
[Wed May 24 22:15:59.432440 2023] [php:error] [pid 1585] [client 172.18.14.145:61406] PHP Fatal error: Uncaught TypeError: ldap_close(): Argument #1 ($ldap) must be of type resource, bool given in phar:///var/www/html/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php:701\nStack trace:\n#0 phar:///var/www/html/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(701): ldap_close()\n#1 /var/www/html/osticket/upload/include/pear/PEAR.php(755): Net_LDAP2->_Net_LDAP2()\n#2 [internal function]: _PEAR_call_destructors()\n#3 {main}\n thrown in phar:///var/www/html/osticket/upload/include/plugins/auth-ldap.phar/include/Net/LDAP2.php on line 701, referer: http://osticket.foo.com/login.php