OCSInventory-NG / OCSInventory-Server

Communication server of OCS Inventory
http://www.ocsinventory-ng.org/
GNU General Public License v2.0
344 stars 139 forks source link

LDAP connection : "User not registered" #376

Closed molotovah closed 1 year ago

molotovah commented 2 years ago

General informations

Operating system : Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal

OCS Inventory informations

PHP Version : 7.4.3 Web Server : Apache/2.4.41 (Ubuntu) Database Server : MySQL (Ubuntu) version 8.0.27-0ubuntu0.20.04.1 Version OCSReports: 2.9.2

LDAP Configuration

KBJRpIk

Problem's description

It's impossible to login with an AD user. I've modified the AUTH Method from var.php file using option 2. Resolving my AD ip in the OCS Server works. Also tried with IP instead of domain name into "CONEX_LDAP_SERVEUR" Would you please help ? Thanks

MaxymAntonenko commented 2 years ago

Also have the same problem. Ldapsearch is working fine with the same attributes, but AD user cannot login - "User not registered".

gillesdubois commented 1 year ago

Hi,

We applied a lot of fixes on the new LDAP auth system. Could you update to the 2.11.1 and try again ?

Regards, Gilles.

fabiointegra commented 1 year ago

Hi everyone! Just to register... Make sure: -> php-ldap is installed on server; -> Extensions enabled in php.ini /etc/php/8.1/apache2/php.ini (Ubuntu 20.04)

extension=ldap
extension=mysqli
extension=pdo_mysql

-> Filter LDAP (I'm using, and working - Docker and dedicated server) CONEX_LDAP_FILTER1 &(memberOf=CN=OCS,OU=TI,DC=lab1.DC=local)