[pmwiki-users] Authentication groups
OBUTEX / Hladůvka
admin at obutex.com
Mon Apr 3 04:32:27 CDT 2006
1) Make authorization groups in your PmWiki project documentation; say
@upp ...Upper Management
@users ... Users
@admins ... administrators
2) add to your local/config.php
$Conditions['member'] = '@$GLOBALS["AuthList"][$condparm] > 0';
and delete local/.htpasswd file (may be is hidden)
3) Use AuthUser and add into Site.AuthUser page lines assigning users
into groups like
4) Protect the whole site to be accesed to loged in users only by
setting the Read attributes of Site.GroupAttributes to
and Edit attribute to
4)set groups attribute or page attributes to
to be accesed by upper managment only
@admins @upp @man
to be accessed by "upper managment" and "managment" only
id:Andre id:Fox @upp
to Andre, Fox and upper managment only
Note individuals must be preceed with "id:" . Use spaces or commas ind
the attr list.
You can also assign persons of "upper managment" to "managment" and
Brown: @upp, at man, at users
this creates some kind of hierarchy; if a page has attr @man then @upp
can access it
Consider the pagelists list only the pages the user is allowed to read -
so if a member of @upp is allowed
to read all pages including pages of @users then the list can be too
long for upper manager's needs.
5) you can filter the page content according to the reader's membership
(:if member @upp:) info for upper managers only
(:if member @man:) info for managers only
(:if exp member @upp || member @man:) info for upper managers and managers
6) I a user tries to see a protected page it asks the name and password
before he/she is loged in.
As all site is protected, the name and password is asked at the first
access to any page.
If any further question don't hesistate to write me - I spent a lot of
time to tune the it.
pmwiki at 911networks.com napsal(a):
> I have a small intranet with about 50 users. I have 3 groups of
> * Upper Management
> * Management
> * Users
> The Upper management can see all the entries, the Management can
> see Users and Management's entries ...
> There are only about 3 or 4 people that will create pages,
> everybody else is view only. I can enter, by hand, all the users
> and their password in a file.
> Any suggestion on how to do it?
911 01 Trenčín
tel.: +421 (0)32 6587000
mailto:admin at obutex.com
More information about the pmwiki-users