Alternative Nagios Authentication Methods

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mp4783
Posts: 116
Joined: Wed May 14, 2014 11:11 am

Alternative Nagios Authentication Methods

Post by mp4783 »

I would like to use an authentication method other than the native Nagios local authentication or AD/LDAP. I have examined the AD/LDAP code but was wondering if there were any documents related to how one might do this.

My concern is that the AD/LDAP component, having been written by Nagios, takes advantage of integration that only Nagios can provide within the encrypted PHP code. In other words, if I were to simply use the AD/LDAP component structure, but insert an alternative authentication method that would operate in the same manner as the active_directory_component_check_authentication function, would it even work?

For example, if my code's logic during a successful authentication sets

Code: Select all

$cbargs["login_ok"]=1;
would Nagios XI accept that and let the user in?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Alternative Nagios Authentication Methods

Post by lmiltchev »

I don't see why it would not work, but I am not a developer. :) I will have to check this out with our devs.

You can write your own (custom) component by following this guide:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Alternative Nagios Authentication Methods

Post by jomann »

If you were to copy how the LDAP or AD component logs users in (by performing a callback) then yes you can essentially copy how it's doing it with your own form of authentication.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked