Nagios contacts case-insensitive

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Nagios contacts case-insensitive

Post by whitest »

I use LDAP for authorization in GUI. Users (contacts and their groups) associated with the hosts/services.
When user input for example "Petr" and own ldap password, he loggined but can't see any information.
When user input "petr" (as specidied in contacts.cfg), rhen everything OK - he can see information.

Is there way to learn Nagios use case-insensitive contacts for user authorization?

Here is a piece of /etc/httpd/conf.d/nagios.conf config:

Code: Select all

<AuthnProviderAlias ldap mydomain>
AuthLDAPURL "ldap://mydomain.loc:3268/ou=MYDOMAIN,dc=loc?sAMAccountName?sub?(objectClass=user)" NONE
AuthLDAPBindDN nagios@mydomain.loc
AuthLDAPBindPassword pwass0rd
</AuthnProviderAlias>

<Directory "/usr/local/nagios/sbin">
#SSLRequireSSL
Options ExecCGI
AllowOverride None
AuthType Basic
AuthzLDAPAuthoritative off
AuthBasicProvider mydomain
AuthName "Nagios LDAP Authentication"
require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
#SSLRequireSSL
Options None
AllowOverride None
AuthType Basic
AuthzLDAPAuthoritative off
AuthBasicProvider mydomain
AuthName "Nagios LDAP Authentication"
require valid-user
</Directory>
Here is a piece of /usr/local/nagios/etc/cgi.cfg:

Code: Select all

use_authentication=1
use_ssl_authentication=0
#default_user_name=guest
authorized_for_system_information=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_services=den,nike,alex,nagiosadmin
authorized_for_all_hosts=den,nike,alex,nagiosadmin
authorized_for_all_service_commands=den,nike,alex,nagiosadmin
authorized_for_all_host_commands=den,nike,alex,nagiosadmin
#authorized_for_read_only=guest
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios contacts case-insensitive

Post by abrist »

Not currently. And I doubt this default behavior will be changed as it would then effect any users relying on the case-sensitive nature.
You are welcome to open a feature request for a cgi config directive to disable case-sensitivity on github though:
https://github.com/NagiosEnterprises/nagioscore
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Nagios contacts case-insensitive

Post by whitest »

tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios contacts case-insensitive

Post by tmcdonald »

As with most bug/feature requests, I will be locking this thread since it is now in the hands of the developers. Feel free to open another if you need anything in the future!
Former Nagios employee
Locked