Authentication with Apache-LDAP-Modul
Matt Cowger
mcowger at plu.edu
Tue Dec 16 18:09:14 CET 2003
I'm using LDAP auth, and its working fine. Are you sure that the
webserver is doing the basic auth? Do you get a passwd prompt from your
browser? One thing to make sure of though:
Make sure that both your CGI-BIN dir and the nagios HTML dir are
protected, or you wont get anything. Mine looks like the following:
######## STUFF FOR NAGIOS ############################
Alias /nagios "/usr/local/nagios/share/"
<Directory "/usr/local/nagios/share/">
AllowOverride None
Options None
Order allow,deny
Allow from all
AuthName "Go AWAY!"
AuthType Basic
LDAP_Protocol_Version 3
LDAP_Server my.ldap.server
LDAP_Port 389
Base_DN "o=my.base.dn"
UID_Attr uid
require user user1
</Directory>
######## STUFF FOR NAGIOS ############################
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
<Directory "/usr/local/apache2/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Allow from all
AuthName "Go AWAY!"
AuthType Basic
LDAP_Protocol_Version 3
LDAP_Server my.ldap.server
LDAP_Port 389
Base_DN "o=my.base.dn"
UID_Attr uid
require user user1
</Directory>
--------------------------------------------------
And in cgi.cfg I have
use_authentication=1
default_user_name=guest
authorized_for_<everthing>=user1
Günther Orth wrote:
> Hello!
> I have a problem with the "logged in as ?".
> I want to use the apache-LDAP-authentication-modul. Everything works
> fine, but when I want to use the external commands, I get an error.
> Example: I want to disable "flap detection" over the webinterface. The
> interface says "Logged in as nagiosadmin". After I click "Commit" for
> disable the flap detection, the interface says " Logged in as ?" and
> don't compute the command.
>
> In nagios.cfg I do this:
> check_external_commands=1
>
> In cgi.cfg I do this:
> use_authentication=1
> authorized_for_<all directives>=nagiosadmin
>
>
> Can anyone help me?
>
> Thanks a lot!
> Guenther
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> 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
--
+----------------------------+-----------------+
|Matt Cowger |w:253.535.7262 |
|Systems Administrator |c:425.923.5885 |
|Pacific Lutheran University |p:253.280.7601 |
+----------------------------+-----------------|
|The Internet treats censorship as a |
|malfunction and routes around it. |
| —John Perry Barlow |
+----------------------------------------------+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cowgermk.vcf
Type: text/x-vcard
Size: 139 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031216/8d9d2895/attachment.vcf>
More information about the Users
mailing list