I did this on SLES 10 as a demonstration for a conference presentation.
In SLES 10:
In /etc/sysconfig/apache2 add:
ldap authnz_ldap
to APACHE_MODULES=
In the Apache configuration (hobbit-apache.conf):
ScriptAlias /hobbit-seccgi/ "/home/hobbit/cgi-secure/"
Directory "/home/hobbit/cgi-secure">
AllowOverride None
Options ExecCGI Includes
Order allow,deny
Allow from all
AuthType Basic
AuthName "Hobbit Administration"
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPBindDN cn=LDAPSRV,o=VMAssist,c=US
AuthLDAPBindPassword ********
AuthLDAPURL ldap://192.168.1.60/o=VMAssist,c=US?uid?sub NONE
Require valid-user
</Directory>
restart Apache.
This process worked for me with the LDAP Server on z/VM (which is IBM Tivoli Directory Server), but should be similar if not the same for OpenLDAP, and others. Other distros may have a different way to add modules to Apache.
Standard disclaimers apply....
McGraw, Robert P wrote:As anyone tried integrating this with LDAP.
Robert
*From:* Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
*Sent:* Tuesday, August 12, 2008 2:46 PM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] password hobbit administration
You have only provided authentication, the second step is authorization. You need to either put an .htaccess file in the admin directory or, better, to put the authorizations for each Apache directory in the Apache configuration file.
Thanks,
Larry Barber
On Tue, Aug 12, 2008 at 1:31 PM, taihia MAITERE <user-0117f32d7a16@xymon.invalid <mailto:user-0117f32d7a16@xymon.invalid>> wrote:
hi i just create a passwrd for admin with this command :
svr-supervision2:/etc/apache2# /usr/bin/htpasswd -c /home/hobbit/server/etc/hobbitpasswd admin
New password:
Re-type new password:
Adding password for user admin
and when i try to somethink in the administration it ask me for a passwd and a login i put exactly what i put admin passwd but
still the same error
*Authorization Required*
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Any one have a idea please ??
Date: Mon, 11 Aug 2008 19:15:48 -0400
From: user-4c45a83f15cb@xymon.invalid <mailto:user-4c45a83f15cb@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
Subject: Re: [hobbit] password hobbit administration
Type updatedb && locate htpasswd
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
On Mon, Aug 11, 2008 at 6:23 PM, Robert Holden <user-25cd5b2bea13@xymon.invalid <mailto:user-25cd5b2bea13@xymon.invalid>> wrote:
Take a look in hobbit/server/etc/hobbitpasswd
You should see something like: admin:<encrypted password>
Robert
On Mon, Aug 11, 2008 at 1:55 PM, taihia MAITERE <user-0117f32d7a16@xymon.invalid <mailto:user-0117f32d7a16@xymon.invalid>> wrote:
thanks for your answear
but the is that when i want to disable a test on the server like the httpd test or port test , it ask me for a hobbit administration login and passwrd at
http:\\ipadress of my server i don't remeber that i have put any password on my server.
do you think it is in apache or is it a hobbit password , i try to use my hobbit login with the password but it give a error like this :
*Authorization Required*
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
/Apache/1.3.34 Server at 172.24.4.20 <http://172.24.4.20> Port 80
Can somebody have a idea ?
Thank you.../
Date: Mon, 11 Aug 2008 15:37:23 -0500
From: user-00a5e44c48c0@xymon.invalid <mailto:user-00a5e44c48c0@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
Subject: Re: [hobbit] password hobbit administration
Take a look at the installation notes. On your Hobbit web page, select Help, then "Installing Hobbit". Scroll down to "Configuring your webserver". That section tells you how to add users to the Apache password file.
Ralph Mitchell
On Mon, Aug 11, 2008 at 3:26 PM, taihia MAITERE <user-0117f32d7a16@xymon.invalid <mailto:user-0117f32d7a16@xymon.invalid>> wrote:
Hi everybody,
can someone indicate me where to find the hobbit administration password ?
or just to change it ?
THANKS
Appelez vos amis de PC à PC -- C'EST GRATUIT Téléchargez Messenger, c'est gratuit ! <http://get.live.com/messenger/overview>
Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger, c'est gratuit ! <http://get.live.com/messenger/overview>
Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger, c'est gratuit ! <http://get.live.com/messenger/overview>
--
Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service: XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid
http://www.linkedin.com/in/richsmrcina
Catch the WAVV! http://www.wavv.org
WAVV 2009 - Orlando, FL - May 15-19, 2009