I can't set up the authorizacion for web interface
Sebastian Schubert
basti at sskm.net
Tue Nov 11 18:27:47 CET 2003
> Hi, everybody
> There is somebody can help me.
> I am trying to access nagios with authorization. I've
> already configured the apache as shoulb be, I think so
> and created the file .htaccess inside sbin and share
> directoy, modified the cgi.cfg file to allow the new
> user, and I've reloaded and restarted the apache but
> still i am having problem to access nagios with
> authorization. It doesn't allow me to start, it seem
> doesn't math the username with the password well. I
> don't know if I need to know something else.
>
> Thanks,
>
> Almayira
>
hi almayira,
try this:
httpd.conf
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
Alias /nagios/ /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
Options None
AuthName "NAGIOS ACCESS"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
</Directory>
now set up a user like this:
htpasswd -c /usr/local/nagios/etc/htpasswd.users -s username
this invokes the htpasswd programm and (-c) creates a new password file
where the password for user 'username' is stored as a (-s) SHA1 Hash
for a second user, just call htpasswd without the -c flag :)
and don't create a htaccess file, since users might be able to look into
that file ...
this should work smoothly ;)
bye
basti
--
"In god we trust, the Rest we Monitor"
Sebastian Schubert - RHCE
Stadtsparkasse Munich
Network and Security
--------------------------
basti at sskm.net
Tel.+49 (89) 2167-6399
Fax.+49 (89) 2167-86399
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list