[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] .htpasswd in admserv
- Subject: Re: [cobalt-users] .htpasswd in admserv
- From: Patrick Barmentlo <pbarmentlo@xxxxxxxxxxxxxx>
- Date: Wed Mar 14 01:02:02 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Tue, 13 Mar 2001 MistaAviB@xxxxxxx wrote:
> Hi, I have a question.
>
> I noticed cobalts /siteadmin and admin gui use .htaccess file like:
>
> require group site1 root admin
> AuthName CobaltRaQ
> AuthType Basic
>
> And it works. It uses the system group and passwd file. I was amazed at this cause i've been trying to write a program to authenticate a user and check a group.I tried this on a linux box, but it does not work.
>
> I found out that redhat (what cobalt is built on i beleive) does not use the /etc/passwd and /etc/group by dfeault when no others are listed, so i copied the file from /etc/pam.d and /etc/security.
>
> My .htaccess file on my linux box looks like
>
> require group site1 root admin
> AuthName CobaltRaQ
> AuthType Basic
> AuthPAM_Enabled off
>
> It authenticates the user fine with /etc/passwd (i can tell by the apache log file and if i do a require a certain user, it works), but it can't authenticate groups.
> The reason is because /etc/group uses commas (,) to seperate users while apache needs spaces... hmph... does anyone know how i can setup it up so it can use commans like cobalt's does?
>
> thanks in advance
>
> Avi.
AFAIK this is because mod_auth_pam module for apache.
pls see the docs of mod_auth_pam
grtz
--
Patrick Barmentlo - Unix System Administrator
VIA NET.WORKS Netherlands
pbarmentlo@xxxxxxxxxxxxxx - pgp Key ID 0x8E372335