Roger Oberholtzer wrote:

> On Fri, 21 Sep 2001 12:15:44 -0400


<snip>


> | > 
> | > Where I use passwords with Apache, I use the .htaccess method in the
> | > directory of interest. The .htaccess file contains lines like:
> | > 
> | >   AuthName "Text to put in password heading"
> | >   AuthType Basic
> | >   AuthUserFile xxx/users
> | >   require user name1 name2 etc
> | > 
> | 
> | 
> | I execute, "locate .htaccess" and get
> | /var/www/cgi-bin/webcal/protected/.htaccess
> 
> Which directory are you in when you do this?


I don't think it matters, "locate" just queries a database.

> And you are sure there are no
> other .htaccess files above or below this in the webcal directory?
> 


Yes.


> | Cat /var/www/cgi-bin/webcal/protected/.htaccess shows
> | AuthUserFile /var/webcal/.htpasswd
> | AuthName WebCal
> | AuthType Basic
> | require valid-user
> 
> require valid-user admin userX userY
> 
> My require line has a list of the users I require a password for. valid-user
> may be a shorthand, but I don't seem to use it. I list the user names directly.
> 


Worth a shot...IT WORKED! I added user "admin" to the "require" line as such:
require valid-user admin

I could then log into Webcal as user "admin". From there, I could add/delete 
users and calendars. I added a user using my unix user code, "tpw", with the 
correct unix password and I could log in as tpw and create/edit calendars 
(without further modification of the .htaccess file). When I tried to log in to 
Webcal as another unix user, authentication failed.
So, it looks like users added by admin, and users listed in the .htaccess file, 
can use Webcal.

<snip>


Regards,
Tim




_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc 
->http://linux.nf/mailman/listinfo/linux-users

Reply via email to