Re: find out group-membership with php

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

 



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 delimited


Not 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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux