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

Re: [cobalt-users] [RAQ4] htaccess with cobalt's own passwordlist



On Thu, 4 Oct 2001, Tech wrote:
> For example, one of my customers has a
> valid LOGIN and PASSWORD to access the
> RAQ's Siteadmin-Page. I would like to use
> the same LOGIN and PASSWORD to give them
> access to a specific site which is protected
> by a ".htaccess"-File.
> 
> My ".htaccess"-file looks as follow:
> 
> # Access file 
> 	order allow,deny 
>         allow from all 
>         require valid-user 
>         Authname "Kundenbereich" 
>         AuthPAM_Enabled off 
>         Authtype Basic 
>         AuthUserFile etc/.passwd  

Close, you *want* PAM in this case, and no reference to etc/passwd
eg:

       order allow,deny
         allow from all
         require valid-user   
         Authname "Kundenbereich"
         AuthPAM_Enabled on
         Authtype Basic
 --
NOTE: this allows *any* site user with a valid password on the machine, if
you want just that user, change 'valid-user' to 'user username' , if you
want to allow anyone with a valid password, but only related to users for
that site, use group instead of user...

ps: .htpasswd files and etc/passwd files are in different formats, you can
not use them interchangably , besides, etc/passwd doesn't have any
passwords in it any more anyhow ;)

OK, i have to ask....what does Kundenbereich mean? lol

gsh