Installing php-ldap with php 7.2 doesn't work

I’m trying to configure ldap with librenms. But having some problems.

CentOS version release:
centos-release-7-5.1804.el7.centos.x86_64

Output of ./validate.php

Component Version
LibreNMS 1.41-8-gd9ceaf7
DB Schema 253
PHP 7.2.6
MySQL 5.5.56-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[OK] Composer Version: 1.6.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Installation error:

Should I proceed with using --skip-broken command?

There is no php-ldap yet available for php7.2?

Or this is regarding my CentOS version?

Thanks.

You need to install the correct package: php72w-ldap

Thanks it was installed now. I’ve tried using php7.2-ldap but it’s not working. So there was specific package.

Thanks murrant.

I have another problem.

Now everything was setup properly regarding ldap configurations in my config.php. Please see below.

$config[‘auth_mechanism’] = “active_directory”;
$config[‘auth_ad_check_certificates’] = 0;
$config[‘auth_ad_url’] = “ldaps://test.test1.com”; // you can add multiple servers
$config[‘auth_ad_domain’] = “test.test1.com”;
$config[‘auth_ad_base_dn’] = “dc=test,dc=test1,dc=com”; //base DN
$config[‘auth_ad_binduser’] = ‘test’;
$config[‘auth_ad_bindpassword’] = ‘test1’;
$config[‘auth_ad_timeout’] = 5;
$config[‘auth_ad_debug’] = false; //no need
$config[‘active_directory’][‘users_purge’] = 30;
$config[‘auth_ad_require_groupmembership’] = true;
$config[‘auth_ad_groups’][‘TEST2’][‘level’] = 10;
$config[‘auth_ad_user_filter’] = “(objectclass=user)”;
$config[‘auth_ad_group_filter’] = “(objectclass=group)”;

Output of validate.php

Component Version
LibreNMS 1.41-8-gd9ceaf7
DB Schema 253
PHP 7.2.6
MySQL 5.5.56-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[OK] Composer Version: 1.6.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Output of ./scripts/auth_test.php

Authentication Method: active_directory
AD bind success
Password:
Authenticate user test.test1:
AUTH SUCCESS

User (9628):
user_id => 9628
username => test.test1
realname => Test Test1
email =>
descr =>
level => 10
can_modify_passwd => 0
Groups: CN=TEST2,DC=TEST,DC=TEST1,DC=COM

I’m still having this error after logging in to the GUI using an LDAP account.
image

Do I need to restart some service or what? I’m at a loss here.

It was fixed now.

Just used the command: service php-fpm restart