AD Authentication broken on new install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

AD Authentication broken on new install

Post by Fred Kroeger »

I've just spun up a new NagiosXI VM (was 5.4.0 - but since upgraded to 5.4.1).
I can't get AD authentication working. User gets and "Invalid username or password" when they use their AD Credentials.
Configuration is OK according to the Site Admin - BaseDN & Account suffix. (I've done it a few times now at other sites).
I've done a dsquery for my user account and the BaseDN matches.
The following message appears in /var/log/secure about every 30secs:

Code: Select all

Feb  1 02:11:28 nagios001 sudo: PAM unable to dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so: cannot open shared object file: No such file or directory
Feb  1 02:11:28 nagios001 sudo: PAM adding faulty module: /lib64/security/pam_fprintd.so
This file doesn't exist on this server, but it doesn't exist either on any of the other sites that do work.

The Nagios Audit Log doesn't provide much more info:

Code: Select all

2017-02-01 18:41:27	711	Nagios XI	SECURITY		10.152.20.11	Log in Failure - Username: fred : Invalid username or password.
Any ideas on troubleshooting steps do to get it working?
Regards ... Fred
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: AD Authentication broken on new install

Post by dwhitfield »

I don't have pam_fprintd.so in that dir either...or anywhere else on my 5.4.1 CentOS 6 install.

What OS/version are you using? Which of the AD components are you using? I can try to match things up as closely as possible to see if I can replicate the issue.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: AD Authentication broken on new install

Post by Fred Kroeger »

This is the standard Nagios VM that I downloaded. So it's CentOS 6.8

With regards to the pam_fprint.d missing problem - looks like an OS bug. They have enabled the fingerprint reader module.
Solution is to remove it or yum install the module.
I chose to remove it, which stopped the messages in the log file.

Code: Select all

authconfig --disablefingerprint --update
What info do you need on AD components?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: AD Authentication broken on new install

Post by ssax »

Run this command:

Code: Select all

sed -i 's/\/\/ Otherwise check authentication/ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);/g' /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/ldap_ad_integration.inc.php
Then run this tail command, try to import/login again, and then send me the entire output from the tail command:

Code: Select all

tail -f /var/log/httpd/*error_log
When you are done, revert the change with this command:

Code: Select all

sed -i 's/ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);/\/\/ Otherwise check authentication/g' /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/ldap_ad_integration.inc.php
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: AD Authentication broken on new install

Post by SteveBeauchemin »

Does the image have the Active Directory Integration component installed by default?
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: AD Authentication broken on new install

Post by ssax »

Yes, it does, you can go to Admin > Manage Components and then search for LDAP / Active Directory Integration (it's down under the bottom Core Components section).
LDAP_AD_Integration_Component.png
You do not have the required permissions to view the files attached to this post.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: AD Authentication broken on new install

Post by Fred Kroeger »

Got your test OK and ran it. Waiting for the Wintel Administrator to explain the failure messages before I post it back here.

thanks... Fred
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: AD Authentication broken on new install

Post by rkennedy »

Sounds good - we'll watch for your response.
Former Nagios Employee
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: AD Authentication broken on new install

Post by ssax »

Sounds good, we'll keep an eye out.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: AD Authentication broken on new install

Post by Fred Kroeger »

Just a follow-up to close this ticket. Problem ended up being that the site was using two suffixes and instead of using the same format login name for both suffixes, they used a different standard (for some of the users) for the suffix they wanted me to use. sigh......
Anyway once they gave the right login name to use with that suffix, then the AD authentication started working - Amazing!
Sorry to waste your time - but the worthwhile part of this excercise was to see how to increase the DEBUG_LEVEL to get some more informative info in the error_log file

Thanks.... Fred
Locked