[pmwiki-users] AuthUser and Groups

Patrick R. Michaud pmichaud at pobox.com
Thu Oct 5 11:10:22 CDT 2006


On Thu, Oct 05, 2006 at 11:54:23AM -0400, Jason Frisvold wrote:
> I'm in the process of hacking up Ben Wilson's AuthUserDBase addon (I
> have some fixes for you Ben) and I'm having a little trouble with
> groups.
> 
> How do I pass the user's group to the authuser function?  I have
> something like this in the config :
> 
> $DefaultPasswords['read'] = '@mygroup';
> 
> I already know what group the user is via SQL, but I'm not sure how to
> tell the wiki...  ?  Can someone point me in the right direction
> please?  Can this be done using AuthUser?

At present AuthUser doesn't know how to get group memberships
from SQL databases -- only from config.php, Site.AuthUser, and
.htgroup files.   (I don't know if AuthUserDBase supports 
group memberships in an SQL database.)

What do the group records in SQL look like?

Pm




More information about the pmwiki-users mailing list