Page 1 of 1

Nagios contacts case-insensitive

Posted: Wed Jun 24, 2015 5:06 am
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 [email protected]
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

Re: Nagios contacts case-insensitive

Posted: Wed Jun 24, 2015 9:20 am
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

Re: Nagios contacts case-insensitive

Posted: Wed Jun 24, 2015 9:25 am
by whitest

Re: Nagios contacts case-insensitive

Posted: Wed Jun 24, 2015 9:26 am
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!