The required libraries for the Active Directory integration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wat_006
Posts: 10
Joined: Tue Apr 05, 2016 12:57 pm

The required libraries for the Active Directory integration

Post by wat_006 »

I've attempted to update php on the nagios vm

I'm able to login as the local user, but when I attempt to login via AD I receive the following message "The required libraries for the Active Directory integration component are missing." Any suggestions?

If I roll back the vm image, all is well, but I would really like to get this working as the php upgrade I did removed a ton of php related vulnerabilities.

We're using the trail version at the moment.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: The required libraries for the Active Directory integrat

Post by rkennedy »

What version of PHP did you upgrade to, and what OS are you running? php -v
Former Nagios Employee
wat_006
Posts: 10
Joined: Tue Apr 05, 2016 12:57 pm

Re: The required libraries for the Active Directory integrat

Post by wat_006 »

php -v shows version 5.6.20

There is also this line in the output "PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ixed.5.3.lin' - /usr/lib64/php/modules/ixed.5.3.lin: cannot open shared object file: No such file or directory in Unknown on line 0"

OS is CentOS 6.7 which is what the downloadable VM comes with.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: The required libraries for the Active Directory integrat

Post by ssax »

What is the output of this:

Code: Select all

rpm -qa | grep php
Thank you
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: The required libraries for the Active Directory integrat

Post by tgriep »

If you have the source for Nagios XI still on the server, you can reinstall sourceguardian by following this procedure.

Change to the /tmp/nagiosxi folder and run the following script yo update Sourceguardian PHP module.

Code: Select all

./install-sourceguardian-extension.sh
If you don't have the source for XI on the system, follow these instructions to download and extract the data.

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xvfz xi-latest.tar.gz
cd nagiosxi
Try that and let us know if this works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
wat_006
Posts: 10
Joined: Tue Apr 05, 2016 12:57 pm

Re: The required libraries for the Active Directory integrat

Post by wat_006 »

Output is

php56w-cli-5.6.20-1.w6.x86_64
php56w-mysql-5.6.20-1.w6.x86_64
php56w-xml-5.6.20-1.w6.x86_64
php56w-common-5.6.20-1.w6.x86_64
php56w-pdo-5.6.20-1.w6.x86_64
php56w-gd-5.6.20-1.w6.x86_64
php56w-devel-5.6.20-1.w6.x86_64
php56w-5.6.20-1.w6.x86_64
php56w-mbstring-5.6.20-1.w6.x86_64
php56w-opcache-5.6.20-1.w6.x86_64
php56w-intl-5.6.20-1.w6.x86_64
php56w-mcrypt-5.6.20-1.w6.x86_64


I extracted the data from xi-latest.tar.gz

when trying to run ./install-sourceguardian-extension.sh I receive the following warning
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ixed.5.3.lin' - /usr/lib64/php/modules/ixed.5.3.lin: cannot open shared object file: No such file or directory in Unknown on line 0
Archive: sourceguardian/ixed4.lin.x86-32.zip
checkdir: cannot create extraction directory: /usr/lib/php/modules
No such file or directory
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: The required libraries for the Active Directory integrat

Post by tgriep »

The old Sourceguardian file has to be moved first.
Login to XI as root, run the following and then continue on with the previous instructions.

Code: Select all

mv /etc/php.d/sourceguardian.ini /tmp
Be sure to check out our Knowledgebase for helpful articles and solutions!
wat_006
Posts: 10
Joined: Tue Apr 05, 2016 12:57 pm

Re: The required libraries for the Active Directory integrat

Post by wat_006 »

Is rerunning sourceguardian.ini going to revert php back to it's original version?


To add to this conundrum, the Core Config Manager is not available.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: The required libraries for the Active Directory integrat

Post by tgriep »

No, running the script

Code: Select all

./install-sourceguardian-extension.sh
Will install the correct Sourceguardian PHP module for the version of PHP you upgraded to and create a new sourceguardian.ini reflecting that.
It will not revert PHP back to the old version.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked