Alex10
PHP CLI is different than the PHP that Apache uses. You will be better off creating a PHP file with <?php phpinfo(); and visiting that in the browser to see the correct information.
<?php phpinfo();
Cheers.
KevinTheJedi Hi Kevin, this logs could help in something? osticket logs
php logs
No, those are not helpful in the slightest.
Maybe this will help?
If all else fails you’ll need to do some googling like “php-ldap extension installed but not working”, etc.
KevinTheJedi Well, now i'm sure my PHP grab the configuration of cli Directory and not of my apache2 Directory. I tried configuring INI file of cli directory but same issue happened. Don't know if is something obligatory use apache2 directory but i don't know indicate to my PHP use that Directory.
I'm giving up with this lol.
Okay, I hope you can eventually figure it out. You can always use OAuth2 to authenticate with your provider instead of using LDAP. Doesn’t work exactly the same but will let them authenticate with Microsoft vs local credentials in osTicket.
KevinTheJedi There's a guide for configure OAuth2 for end users and agents? I already do this configuration for helpdesk email but no for end users/agents.
Yep yep:
KevinTheJedi Looks promising, thanks for your time Kevin.
Hey Kevin, i did this but... i have a little inconvenient. How i'm gonna connect to my server if i put the redirect URL is a localhost? Usually to login to my osticket portal i use: osticket.saguicorp.local. When i try log in everything is okay, request my email and my password but then:
If you do not have a legitimate domain name with HTTPS then you will have to use localhost. If you have issues with that send your complaints to MS as they implemented these restrictions.
KevinTheJedi Hey Kevin! Good news, i solve the LDAP Plugin issue. I can authenticate now with my network user but, i have a little doubt, do you know why my end users can't authenticate? I don't know if i'm missing something. When i configured the plugin i put this to clients and agents.
Check your logs on your server for any errors. Check your AD logs for any login attempts.
Without any errors it’d be impossible for me to say.
KevinTheJedi It's really kinda weird Kevin... i don't see anything on my AD Logs or attempts of login. On my server on osTicket i don't see any error log or php error log 🙁
Check other logs then (general server logs, webserver error logs, PHP error logs, MySQL/MariaDB error logs, osTicket System Logs, Browser Console logs, etc.).
If all else fails look at the other threads on LDAP.
Hi Kevin, i already solved this. I think PHP 8.1 has a bug or something else with LDAP plugin. I did a downgrade of my PHP Version to 8.0, after that LDAP authentication works correctly. I'm leaving here the solution for somebody if they're having same issue.
Regards!
Very strange as I use PHP 8.1 and have no issues with LDAP connecting to OpenLDAP.
Did you run sudo apt-get install php8.1-ldap?
sudo apt-get install php8.1-ldap