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.5 available

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

LDAP login broke down after an upgrade to OCS 2.5

Hello!

I just upgraded OCS Inventory server to version 2.5, but after an upgrade if I try to log in with domain user, it says "User not registered". If I log in with admin account, then I can see domain users that have been registered before.

CONEX_LDAP_CHECK_FIELD_NAME is memberof.
I have tried to change it to comment, department and so on.

In apache error.log I can see lot of notices about duplicate entries:

[Thu Nov 08 14:18:34.344984 2018] [core:notice] [pid 30603] AH00094: Command line: '/usr/sbin/apache2'
DBD::mysql::db do failed: Duplicate entry '1709' for key 'PRIMARY' at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Server/Inventory/Update/AccountInfos.pm line 66.
DBD::mysql::db do failed: Duplicate entry '5596' for key 'PRIMARY' at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Server/Inventory/Update/AccountInfos.pm line 66.
DBD::mysql::db do failed: Duplicate entry '1845' for key 'PRIMARY' at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Server/Inventory/Update/AccountInfos.pm line 66.
DBD::mysql::db do failed: Duplicate entry '5631' for key 'PRIMARY' at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Server/Inventory/Update/AccountInfos.pm line 66.

Also it marks down:

[Thu Nov  8 14:18:34 2018] OCSINVENTORY: (SOAP): Cannot find XML::Entities
Scalar value @part_query[...] better written as $part_query[...] at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
Scalar value @args[...] better written as $args[...] at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Thu Nov  8 14:18:34 2018] OCSINVENTORY: (SOAP): Cannot find XML::Entities
Scalar value @part_query[...] better written as $part_query[...] at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
Scalar value @args[...] better written as $args[...] at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Thu Nov 08 14:18:34.344911 2018] [mpm_prefork:notice] [pid 30603] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g mod_perl/2.0.9 Perl/v5.22.1 configured -- resuming normal operations

Could you help me to solve the situation with ldap logging?
asked in OCS Inventory NG server for Unix by (160 points)

1 Answer

0 votes

Problem solved!

Documentation:

https://wiki.ocsinventory-ng.org/03.Management-console-and-its-advanced-features/Synchronization-between-OCS-and-LDAP/

I needed to make changes in ~/backend/AUTH/auth.php/auth.php

and changed

$list_methode=array(0=>"local.php");

to
$list_methode=array(0=>"ldap.php",1=>"local.php");

answered by (160 points)
 
Powered by Question2Answer
...