Error cgi htpasswd.users
Posted: Tue Aug 29, 2017 7:13 am
Hi everybody
I'm new in nagios and I have a problem with the authentication cgi's.
I have configured authentication with active directory in nagios xi.
When I created users using the menu "Manage Users" and I put the option Authentication Settings with the authentication type as active drectory till some days ago the file /usr/local/nagios/etc/htpasswd.users was updated correctly.
But the new users are not added as usual , I have to make it manually
htpasswd -s /usr/local/nagios/etc/htpasswd.users xxxxxxxxx
My config in nagios.conf is :
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile "/usr/local/nagios/etc/htpasswd.users"
Require valid-user
Require all denied
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile "/usr/local/nagios/etc/htpasswd.users"
Require valid-user
Require all denied
</Directory>
Do you have some idea about the problem ?
Thanks in advance
I'm new in nagios and I have a problem with the authentication cgi's.
I have configured authentication with active directory in nagios xi.
When I created users using the menu "Manage Users" and I put the option Authentication Settings with the authentication type as active drectory till some days ago the file /usr/local/nagios/etc/htpasswd.users was updated correctly.
But the new users are not added as usual , I have to make it manually
htpasswd -s /usr/local/nagios/etc/htpasswd.users xxxxxxxxx
My config in nagios.conf is :
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile "/usr/local/nagios/etc/htpasswd.users"
Require valid-user
Require all denied
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile "/usr/local/nagios/etc/htpasswd.users"
Require valid-user
Require all denied
</Directory>
Do you have some idea about the problem ?
Thanks in advance