[hobbit] password hobbit administration

Rich Smrcina rsmrcina at wi.rr.com
Tue Aug 12 22:43:26 CEST 2008


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:lebarber at gmail.com]
> *Sent:* Tuesday, August 12, 2008 2:46 PM
> *To:* hobbit at hswn.dk
> *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 
> <taihiamaitere at hotmail.com <mailto:taihiamaitere at hotmail.com>> 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: josh at imaginenetworksllc.com <mailto:josh at imaginenetworksllc.com>
> 
> 
> To: hobbit at hswn.dk <mailto:hobbit at hswn.dk>
> Subject: Re: [hobbit] password hobbit administration
> 
> Type updatedb && locate htpasswd
> 
> Josh Luthman
> Office: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
> 
> 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 <robertholden at gmail.com 
> <mailto:robertholden at gmail.com>> 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 
> <taihiamaitere at hotmail.com <mailto:taihiamaitere at hotmail.com>> 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: ralphmitchell at gmail.com <mailto:ralphmitchell at gmail.com>
> To: hobbit at hswn.dk <mailto:hobbit at hswn.dk>
> 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 
> <taihiamaitere at hotmail.com <mailto:taihiamaitere at hotmail.com>> 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: 414-491-6001
Ans Service:  360-715-2467
rich.smrcina at vmassist.com
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2009 - Orlando, FL - May 15-19, 2009



More information about the Xymon mailing list