[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] .htpasswd in admserv
- Subject: [cobalt-users] .htpasswd in admserv
- From: MistaAviB@xxxxxxx
- Date: Tue Mar 13 15:42:42 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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.