Page 1 of 1

Alternative Nagios Authentication Methods

Posted: Sat Apr 11, 2015 5:48 pm
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?

Re: Alternative Nagios Authentication Methods

Posted: Mon Apr 13, 2015 11:54 am
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

Re: Alternative Nagios Authentication Methods

Posted: Mon Apr 13, 2015 12:27 pm
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.