[pmwiki-users] UserAuth Enhancements

Dan Weber webmaster at drwhosting.net
Wed Jan 11 19:45:58 CST 2006


UserAuth Modifications


I modified UserAuth to allow the definition of groups and assign individual 
users to groups. Abilities can still be assigned to individual users as well 
but the introduction of user groups allows for easier maintenance when there 
are many users defined. I followed the lead of the new AuthUser module and 
user groups start with the @ symbol. The administration page now contains 
two tables, one for users and one for user groups but both are stored in the 
same htpasswd file.


There is a new conditional variable member that allows to check against a 
specific group membership


(:if member @editors:) conditional text (:ifend)


Another change I made is the addition of a Full Name field. Instead of just 
having a username that is used to authenticate there is now the possibility 
to add the full name of a user, or a group description. The script can read 
the old htpasswd file and will convert it on the first modification.


Some minor changes to make UserAuth compatible with PmWiki 2.1 finish the 
list of my changes.


You can download the tgz file here: 
http://www.pmwiki.org/wiki/Cookbook/UserAuthDevel


Please let me know if you find any problems as I have done only limited 
testing so far.


Dan







More information about the pmwiki-users mailing list