Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

LDAPS implement


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

in OCS Inventory NG server for Unix by (460 points)

Please log in or register to answer this question.

Powered by Question2Answer