-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP Plugin on osTicket v1.18 with Debian 12 and PHP 8.2.7 #276
Comments
experiencing the same issue on ubuntu 22.04 and php 8.1. Official phar from the downloads page. |
This issue is likely a result of the version of Net_LDAP2 package we use (v2.2.1) not fully supporting PHP 8.2. Their latest official release is v2.2.1 however they do have an unofficial release labeled v2.3.0 that adds PHP 8.2 support. If you want to remedy this until the next build of the LDAP plugin is released you can either downgrade to PHP 8.1 -or- you can:
cd /path/to/osTicket/include/plugins/
…
php -d phar.readonly=0 -r '$phar = new Phar("auth-ldap.phar"); $phar->extractTo("./auth-ldap");'
Note: Cheers. |
THANK YOU! I did just that, no more error on saving the connection settings. (Also it fails when I provide a bad password and I can see the host logging in to the AD in AD logs while saving config). Unfortunately I cannot log in to OST using ldap passwords. And I do not even see login attempts on the LDAP side. Please notice that I have a very old OST installation that just works with the same settings. What I have to do is to manually force the user to be an LDAP user (did work with autoselect on the old setup). |
Have you tried setting someone to LDAP and then back to auto-select to test? Also, what are the Agents' Cheers. |
|
So As for Users, it’s likely the same scenario. For any with just Cheers. |
oh yes. I see that! Thanks! So after I migrate the site to the newest version I need to update ost_user_account table column backend and set ldap.client.p7i4 instead of ldap.client. I see that this is what has been added to the user after I've reonboarded an account. Shouldn't there be an upgrade process for this in the DB upgrade scripts? If you need it maybe I'll help writing a bit? |
It’s already in-place you just need to have the latest build of the plugin installed beforehand. Cheers. |
ack. putting in backend = NULL in ost_user_account also seems to do the trick, thanks! |
@JediKev
as you suggested I openend a new thread for my issue.
I reinstalled osTicket downloaded form the main site with the LDAP and HTTP Passthru Authentication plugins.
Just in the LDAP new instance therre are a problem with the server row.
It is onny allowed to save it if is in the format ldaps://myserver, if i try to wite it as myserver:636 there are problems
With the format ldaps://myserver I was able to save the configuration, and I was able to search users from my remote directory.
If I try to use my remote user to login into the system, it does not work, and I found this message in the Apache error.log
[Sat Aug 05 11:44:30.344523 2023] [php:error] [pid 1329] [client 194.119.211.197:21359] PHP Fatal error: Uncaught TypeError: ldap_free_result(): Argument #1 ($result) must be of type LDAP\Result, bool given in phar:///var/www/html/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php:501\nStack trace:\n#0 phar:///var/www/html/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php(501): ldap_free_result()\n#1 /var/www/html/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/html/include/plugins/auth-ldap.phar/include/Net/LDAP2/Search.php on line 501, referer: http://servicesarea.irib.cnr.it/login.php
The text was updated successfully, but these errors were encountered: