Quantcast
Viewing latest article 49
Browse Latest Browse All 4596

LDAPS implement

Hi,

LDAP connection (not anonymous) work. But when I change protocol ldap by ldaps and port 389 to 636, I have a blank page when I validate my login.
In log/php-fpm/www-error.log, I have this error :
[05-Oct-2023 19:26:48 Europe/Paris] PHP Fatal error: Uncaught TypeError: ldap_search(): Argument #1 ($ldap) must be of type LDAP|array, bool given in /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php:83
Stack trace:
#0 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php(83): ldap_search()
#1 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php(66): search_on_loginnt()
#2 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php(45): verif_pw_ldap()
#3 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/auth.php(100): require_once('...')
#4 /usr/share/ocsinventory-reports/ocsreports/require/header.php(321): require_once('...')
#5 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('...')
#6 {main}
thrown in /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php on line 83

ldap.conf is not located at /etc/ldap/ldap.conf but in /etc/openldap/ldap.conf. I have all prerequis.

I have GLPI on this same server and it's work perfect in LDAPS with SSO.
Can you help me ?

Information about environnement :

Operating system : Rocky 9.2
Perl version : 5.32.1
SGBD : Mariadb 10.5.16
Ocs server version : 2.12.1

Thanks

Viewing latest article 49
Browse Latest Browse All 4596

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>