RE: Setting up password authentication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, I've got it working now, satisfy any did the trick.


Paul Cocker
Systems Infrastructure Support Administrator

-----Original Message-----
From: Res [mailto:res@xxxxxxxxxx] 
Sent: 04 June 2008 23:04
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Setting up password authentication

On Wed, 4 Jun 2008, Paul Cocker wrote:

> I want to setup digest password authentication as a light deterrent 
> around a development site (i.e. nothing sensitive, just not ready for 
> public consumption).
>
> I added the following to httpd.conf:
>
> <Directory "/var/www/html/dev">
>        AuthType Digest
>        AuthName "Development Area - Authorised Access Only!"
>        AuthUserFile /usr/local/apache2/passwd/digest
>        Require user username
>        Order Deny,Allow
>        Deny from all
>        Allow from {ipaddress}

--->     Satisfy any

> </Directory>


>
> <VirtualHost *:80>
>     ServerAdmin administrator@xxxxxxxxxxxx
>     ServerName dev.domain.co.uk
>     DocumentRoot /var/www/html/dev
> </VirtualHost>



keep it simple and put your directory container inside the virtualhost
block

> 1. I don't know what the significance of realm is, nor have I been 
> able to find out.

its the name fo your realm that the username will belong to

>
> 2. Attempts to connect to this site get the username and password box,

as earlier, insert the satisfy option

> but all produce an Error 500 page, regardless of whether the correct 
> credentials are entered or not. No files exist within 
> /var/www/html/dev because I simply wished to test authentication.

Check you have the authconfig option? in your directory container add in
AllowOverride AuthConfig        ... its possible your global config 
parameters are denying this. Also whislt your testing do something like
echo "it works" >  /var/www/html/dev/index.html its not your problem but
will help verify you can read the dir once you do login.


-- 
Cheers
Res

I read usenet and lists in pine. But m$ outlook, thunderbird and gmail
often use html span/whatever for quotes, makes it hard to tell who said
what, so I dont try. If I ignore you, thats why! Use a compliant mailer.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





TNT Post is the trading name for TNT Post UK Ltd (company number: 04417047), TNT Post (Doordrop Media) Ltd (00613278), TNT Post Scotland Ltd (05695897),TNT Post North Ltd (05701709) and TNT Post South West Ltd (05983401). Emma's Diary and Lifecycle are trading names for Lifecycle Marketing (Mother and Baby) Ltd (02556692). All companies are registered in England and Wales; registered address: 1 Globeside Business Park, Fieldhouse Lane, Marlow, Buckinghamshire, SL7 1HY.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux