.htpasswd login
Klaus Umbach
treibholz at sozial-inkompetent.de
Mon Mar 23 13:51:19 CET 2009
On 23/03/09 12:55, Chris wrote:
> On Fri, Mar 20, 2009 at 5:08 PM, Klaus Umbach
> <treibholz at sozial-inkompetent.de> wrote:
> > On 20/03/09 16:28, Chris wrote:
> Thanks. I have addedd AuthUserFile /etc/nagios/.htaccess to my
> /etc/apache2/conf.d/nagios.conf
>
> ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi"
>
> <Directory "/usr/lib/nagios/cgi">
> Options ExecCGI
> AllowOverride None
> Order allow,deny
> Allow from all
> AuthName "Nagios"
> AuthType Basic
> AuthUserFile /etc/nagios/htpasswd.users
> AuthUserFile /etc/nagios/.htaccess
^ This can never work .htaccess is NOT a Userauthfile.
Just do it as I wrote it in my example.
> Require valid-user
> </Directory>
>
> Alias /nagios "/usr/share/nagios"
>
> <Directory "/usr/share/nagios">
> Options None
> AllowOverride None
> Order allow,deny
> Allow from all
> AuthName "Nagios"
> AuthType Basic
> AuthUserFile /etc/nagios/htpasswd.users
> AuthUserFile /etc/nagios/.htaccess
> Require valid-user
> </Directory>
>
> My /etc/nagios/.htaccess files look like this
>
> AuthName "AD"
> AuthType Basic
> AuthLDAPURL ldap://ad:389/ou=tree,dc=company,dc=com?sAMAccountName?sub
> AuthBasicProvider ldap
> AuthzLDAPAuthoritative off
> require valid-user
>
> I restarted apache2 and nagios, but now I can't login - neither as
> nagiosadmin nor as AD user.
>
--
BOFH excuse #225:
It's those computer people in X {city of world}. They keep stuffing things up.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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