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

[cobalt-users] .htpasswd in admserv



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.