On Mon, Sep 15, 2008 at 2:36 PM, Bradley Giesbrecht <brad@xxxxxxxxxxx> wrote:You need to get a little inventive here. .htaccess: SetEnv dir_groups "system|managers|sales" # pipe delimitedNot so useful as it doesn't tell you which one your user is a member of. Authorization info doesn't seem to be propogated by Apache. Eric Covener covener@xxxxxxxxx
The user may also be a member of multiple groups. I don't use apache auth but here is an alternative to SetEnv. <?php $dir_groups = file( "htgroupd" ) ; die ( "<pre>" . print_r ( $dir_groups , true ) . "</pre>" ) ; ?>Personally I like to useing something other then apache auth so you can do simple things like LOGOUT without a bunch of trickery.
Check out pear auth for something simple: http://pear.php.net/package/auth/ //Brad --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx