Hi, im trying to connect to LDAP however , but I keep getting Bind failed: Can't contact LDAP server: Unable to bind to server ldaps://myserver . I have also tried downgrading to php8.1, enabled ldap extension in my php.ini and follow the instructions as mentioned on this link : (https://github.com/osTicket/osTicket-plugins/issues/276) but still not luck . It works fine when I try to connect using ldapsearch .
This is what I get from logs:
TypeError: ldap_close(): Argument #1 ($ldap) must be of type LDAP\Connection, bool given in phar:///var/www/html/Helpdesk/include/plugins/auth-ldap.phar/include/Net/LDAP2.php:701
Stack trace:
#0 phar:///var/www/html/Helpdesk/include/plugins/auth-ldap.phar/include/Net/LDAP2.php(701): ldap_close()
#1 /var/www/html/Helpdesk/include/pear/PEAR.php(755): Net_LDAP2->_Net_LDAP2()
#2 [internal function]: _PEAR_call_destructors()
#3 {main}
thrown in phar:///var/www/html/Helpdesk/include/plugins/auth-ldap.phar/include/Net/LDAP2.php on line 701" while reading upstream, client: x.x.x.x , server: x. x. x. x, request: "POST /scp/plugins.php?id=9&a=add-instance HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "x. x . x . x", referrer: "http://x. x . x. x /scp/plugins.php?id=9&a=add-instance"
Any help would be greatly appreciated .Thank you !