This is the default configuration page for PmWiki's identity-based authorizations (aka "authuser"). AuthUser is a very flexible system for managing access to pages, but with flexibility can also come complexity. We'll try to walk through it here.

This site appears to have the authuser extensions enabled.

Note: This page is an obsolete copy of the page that now should be using SiteAdmin.AuthUser.

Authentication

Authentication from external sources (uncomment out appropriate line(s)):

  # htpasswd: /filesystem/path/to/.htpasswd
  # ldap: ldap://ldap.example.com/ou=People,o=example?uid?sub
  # mysql: mysql://[username:password]@localhost/db/table?user,passwd

Usernames and encrypted passwords specified directly (encrypted strings can be inserted by using the (:encrypt phrase:) directive, or via ?action=crypt).

  # alice: $1$NHrURcZQ$QexZSitx4bmFQmmFOVQmG.  ("alicesecret")
  # bob: $1$kai8n1r0$srMjkIR8oUR.fvSGGP7LZ/ ("bobsecret")

Authorization

To authorize individuals to specific pages or groups, use "id:name" when specifying a password using ?action=attr. (See PmWiki.Passwords.) To allow any authenticated person, use "id:*".

Authorization groups

This page can be used to define custom authorization groups (indicated by a leading "@" sign):

  # @editors: alice,bob
  # charlie: @editors,@visitors
  # @admins: alice, dave

Site Wide Settings

Authentication

To set default site-wide authorizations, use $DefaultPasswords in local/config.php:

  $DefaultPasswords['read'] = 'id:*';
  $DefaultPasswords['edit'] = 'id:alice id:bob';
  $DefaultPasswords['admin'] = 'id:alice';

Authorization

To restrict a page or group of pages to an authorization group, use "@group" as a password in ?action=attr for the page or GroupAttributes page. For sitewide groups, use $DefaultPasswords in local/config.php:

  $DefaultPasswords['edit'] = '@editors';
  $DefaultPasswords['admin'] = '@admins';

Page last modified on October 25, 2005, at 01:51 AM