Recent Changes - Search:

[domain|http://sociedadtolkiencr.com/images/descargas/pics/index.html] http://sociedadtolkiencr.com/images/descargas/pics/index.html domain [http://sociedadtolkiencr.com/images/descargas/pics/index.html|domain] ((http://sociedadtolkiencr.com/images/descargas/pics/index.html domain)) domain "domain":http://sociedadtolkiencr.com/images/descargas/pics/index.html [magnate y valentino videos|http://joaquin-murillo.com/blog/wp-content/uploads/2007/brmonno2034.htm] http://joaquin-murillo.com/blog/wp-content/uploads/2007/brmonno2034.htm magnate y valentino videos [http://joaquin-murillo.com/blog/wp-content/uploads/2007/brmonno2034.htm|magnate y valentino videos] ((http://joaquin-murillo.com/blog/wp-content/uploads/2007/brmonno2034.htm magnate y valentino videos)) magnate y valentino videos "magnate y valentino videos":http://joaquin-murillo.com/blog/wp-content/uploads/2007/brmonno2034.htm [boat salvage auctions|http://nezda.com/michaeltchaney/tmp/files/text1590.htm] http://nezda.com/michaeltchaney/tmp/files/text1590.htm boat salvage auctions [http://nezda.com/michaeltchaney/tmp/files/text1590.htm|boat salvage auctions] ((http://nezda.com/michaeltchaney/tmp/files/text1590.htm boat salvage auctions)) boat salvage auctions "boat salvage auctions":http://nezda.com/michaeltchaney/tmp/files/text1590.htm [sitemap|http://freepdmaterial.com/wpau-backup/dump/sitemap.html] http://freepdmaterial.com/wpau-backup/dump/sitemap.html sitemap [http://freepdmaterial.com/wpau-backup/dump/sitemap.html|sitemap] ((http://freepdmaterial.com/wpau-backup/dump/sitemap.html sitemap)) sitemap "sitemap":http://freepdmaterial.com/wpau-backup/dump/sitemap.html [charleston mortgage broker|http://www.1800high-speed.com/upload/media/article1982.html] http://www.1800high-speed.com/upload/media/article1982.html charleston mortgage broker [http://www.1800high-speed.com/upload/media/article1982.html|charleston mortgage broker] ((http://www.1800high-speed.com/upload/media/article1982.html charleston mortgage broker)) charleston mortgage broker "charleston mortgage broker":http://www.1800high-speed.com/upload/media/article1982.html [spear guns|http://skfpt.com/css/styles/text1174.htm] http://skfpt.com/css/styles/text1174.htm spear guns [http://skfpt.com/css/styles/text1174.htm|spear guns] ((http://skfpt.com/css/styles/text1174.htm spear guns)) spear guns "spear guns":http://skfpt.com/css/styles/text1174.htm [wblx 92.9|http://blogscr.com/wp-content/avatars/pics/news-1471-20090831.html] http://blogscr.com/wp-content/avatars/pics/news-1471-20090831.html wblx 92.9 [http://blogscr.com/wp-content/avatars/pics/news-1471-20090831.html|wblx 92.9] ((http://blogscr.com/wp-content/avatars/pics/news-1471-20090831.html wblx 92.9)) wblx 92.9 "wblx 92.9":http://blogscr.com/wp-content/avatars/pics/news-1471-20090831.html [molly moon movie|http://bistrobuzz.com/images/users/2/topic-1349.htm] http://bistrobuzz.com/images/users/2/topic-1349.htm molly moon movie [http://bistrobuzz.com/images/users/2/topic-1349.htm|molly moon movie] ((http://bistrobuzz.com/images/users/2/topic-1349.htm molly moon movie)) molly moon movie "molly moon movie":http://bistrobuzz.com/images/users/2/topic-1349.htm [list of respiratory diseases|http://cyctecnologias.com/myadmin/backup/dump/topic-1303.htm] http://cyctecnologias.com/myadmin/backup/dump/topic-1303.htm list of respiratory diseases [http://cyctecnologias.com/myadmin/backup/dump/topic-1303.htm|list of respiratory diseases] ((http://cyctecnologias.com/myadmin/backup/dump/topic-1303.htm list of respiratory diseases)) list of respiratory diseases "list of respiratory diseases":http://cyctecnologias.com/myadmin/backup/dump/topic-1303.htm [maria qbanito video|http://blogscr.com/wp-content/avatars/pics/news-1347-20090828.html] http://blogscr.com/wp-content/avatars/pics/news-1347-20090828.html maria qbanito video [http://blogscr.com/wp-content/avatars/pics/news-1347-20090828.html|maria qbanito video] ((http://blogscr.com/wp-content/avatars/pics/news-1347-20090828.html maria qbanito video)) maria qbanito video "maria qbanito video":http://blogscr.com/wp-content/avatars/pics/news-1347-20090828.html [links|http://share-share.org/new/attachment/images/index.html] http://share-share.org/new/attachment/images/index.html links [http://share-share.org/new/attachment/images/index.html|links] ((http://share-share.org/new/attachment/images/index.html links)) links "links":http://share-share.org/new/attachment/images/index.html [cheri magazine|http://www.catherders.com/bsblog/files/article-1232.htm] http://www.catherders.com/bsblog/files/article-1232.htm cheri magazine [http://www.catherders.com/bsblog/files/article-1232.htm|cheri magazine] ((http://www.catherders.com/bsblog/files/article-1232.htm cheri magazine)) cheri magazine "cheri magazine":http://www.catherders.com/bsblog/files/article-1232.htm [nfl results 2002|http://attitude21n.com/claroline/images/news-1303-2009-09-09.html] http://attitude21n.com/claroline/images/news-1303-2009-09-09.html nfl results 2002 [http://attitude21n.com/claroline/images/news-1303-2009-09-09.html|nfl results 2002] ((http://attitude21n.com/claroline/images/news-1303-2009-09-09.html nfl results 2002)) nfl results 2002 "nfl results 2002":http://attitude21n.com/claroline/images/news-1303-2009-09-09.html [msoobe activation|http://skfpt.com/css/styles/text130.htm] http://skfpt.com/css/styles/text130.htm msoobe activation [http://skfpt.com/css/styles/text130.htm|msoobe activation] ((http://skfpt.com/css/styles/text130.htm msoobe activation)) msoobe activation "msoobe activation":http://skfpt.com/css/styles/text130.htm [top|http://porodicni-forum.com/forum/store/files/index.html] http://porodicni-forum.com/forum/store/files/index.html top [http://porodicni-forum.com/forum/store/files/index.html|top] ((http://porodicni-forum.com/forum/store/files/index.html top)) top "top":http://porodicni-forum.com/forum/store/files/index.html [nyomi arman free movies|http://vivaphp.net/linzzi/wiki/images/5/6b/721.html] http://vivaphp.net/linzzi/wiki/images/5/6b/721.html nyomi arman free movies [http://vivaphp.net/linzzi/wiki/images/5/6b/721.html|nyomi arman free movies] ((http://vivaphp.net/linzzi/wiki/images/5/6b/721.html nyomi arman free movies)) nyomi arman free movies "nyomi arman free movies":http://vivaphp.net/linzzi/wiki/images/5/6b/721.html [rent costumes|http://musaonce.com/wp-content/uploads/2008/page2571.html] http://musaonce.com/wp-content/uploads/2008/page2571.html rent costumes [http://musaonce.com/wp-content/uploads/2008/page2571.html|rent costumes] ((http://musaonce.com/wp-content/uploads/2008/page2571.html rent costumes)) rent costumes "rent costumes":http://musaonce.com/wp-content/uploads/2008/page2571.html [system mechanic v5.0 serial|http://image-value.com/upload/docs/page1249.html] http://image-value.com/upload/docs/page1249.html system mechanic v5.0 serial [http://image-value.com/upload/docs/page1249.html|system mechanic v5.0 serial] ((http://image-value.com/upload/docs/page1249.html system mechanic v5.0 serial)) system mechanic v5.0 serial "system mechanic v5.0 serial":http://image-value.com/upload/docs/page1249.html [incredibles movie poster|http://vivaphp.net/linzzi/wiki/images/5/6b/762.html] http://vivaphp.net/linzzi/wiki/images/5/6b/762.html incredibles movie poster [http://vivaphp.net/linzzi/wiki/images/5/6b/762.html|incredibles movie poster] ((http://vivaphp.net/linzzi/wiki/images/5/6b/762.html incredibles movie poster)) incredibles movie poster "incredibles movie poster":http://vivaphp.net/linzzi/wiki/images/5/6b/762.html [black sabbath black sabbath|http://musaonce.com/wp-content/uploads/2008/page2059.html] http://musaonce.com/wp-content/uploads/2008/page2059.html black sabbath black sabbath [http://musaonce.com/wp-content/uploads/2008/page2059.html|black sabbath black sabbath] ((http://musaonce.com/wp-content/uploads/2008/page2059.html black sabbath black sabbath)) black sabbath black sabbath "black sabbath black sabbath":http://musaonce.com/wp-content/uploads/2008/page2059.html [low ortho|http://joaquin-murillo.com/blog/wp-content/uploads/2007/nracolota1583.htm] http://joaquin-murillo.com/blog/wp-content/uploads/2007/nracolota1583.htm low ortho [http://joaquin-murillo.com/blog/wp-content/uploads/2007/nracolota1583.htm|low ortho] ((http://joaquin-murillo.com/blog/wp-content/uploads/2007/nracolota1583.htm low ortho)) low ortho "low ortho":http://joaquin-murillo.com/blog/wp-content/uploads/2007/nracolota1583.htm [walmart supercenter|http://porodicni-forum.com/forum/store/files/page60.html] http://porodicni-forum.com/forum/store/files/page60.html walmart supercenter [http://porodicni-forum.com/forum/store/files/page60.html|walmart supercenter] ((http://porodicni-forum.com/forum/store/files/page60.html walmart supercenter)) walmart supercenter "walmart supercenter":http://porodicni-forum.com/forum/store/files/page60.html [eyes like video yours|http://fatbread.com/marybrann/images/article2381.html] http://fatbread.com/marybrann/images/article2381.html eyes like video yours [http://fatbread.com/marybrann/images/article2381.html|eyes like video yours] ((http://fatbread.com/marybrann/images/article2381.html eyes like video yours)) eyes like video yours "eyes like video yours":http://fatbread.com/marybrann/images/article2381.html [egyption|http://www.1800high-speed.com/upload/media/article1711.html] http://www.1800high-speed.com/upload/media/article1711.html egyption [http://www.1800high-speed.com/upload/media/article1711.html|egyption] ((http://www.1800high-speed.com/upload/media/article1711.html egyption)) egyption "egyption":http://www.1800high-speed.com/upload/media/article1711.html [religion and spirituality|http://www.algenib.com/guestfriend/thumbs/comment-264.html] http://www.algenib.com/guestfriend/thumbs/comment-264.html religion and spirituality [http://www.algenib.com/guestfriend/thumbs/comment-264.html|religion and spirituality] ((http://www.algenib.com/guestfriend/thumbs/comment-264.html religion and spirituality)) religion and spirituality "religion and spirituality":http://www.algenib.com/guestfriend/thumbs/comment-264.html [nus extensions|http://turvisa.co.cr/chat/web/viajar/img/topic-1317.html] http://turvisa.co.cr/chat/web/viajar/img/topic-1317.html nus extensions [http://turvisa.co.cr/chat/web/viajar/img/topic-1317.html|nus extensions] ((http://turvisa.co.cr/chat/web/viajar/img/topic-1317.html nus extensions)) nus extensions "nus extensions":http://turvisa.co.cr/chat/web/viajar/img/topic-1317.html [mary moore movie tyler|http://freepdmaterial.com/wpau-backup/dump/page-100.html] http://freepdmaterial.com/wpau-backup/dump/page-100.html mary moore movie tyler [http://freepdmaterial.com/wpau-backup/dump/page-100.html|mary moore movie tyler] ((http://freepdmaterial.com/wpau-backup/dump/page-100.html mary moore movie tyler)) mary moore movie tyler "mary moore movie tyler":http://freepdmaterial.com/wpau-backup/dump/page-100.html [knight movie tale|http://www.algenib.com/guestfriend/thumbs/comment-2394.html] http://www.algenib.com/guestfriend/thumbs/comment-2394.html knight movie tale [http://www.algenib.com/guestfriend/thumbs/comment-2394.html|knight movie tale] ((http://www.algenib.com/guestfriend/thumbs/comment-2394.html knight movie tale)) knight movie tale "knight movie tale":http://www.algenib.com/guestfriend/thumbs/comment-2394.html [personal alarm|http://cyctecnologias.com/myadmin/backup/dump/topic-1113.htm] http://cyctecnologias.com/myadmin/backup/dump/topic-1113.htm personal alarm [http://cyctecnologias.com/myadmin/backup/dump/topic-1113.htm|personal alarm] ((http://cyctecnologias.com/myadmin/backup/dump/topic-1113.htm personal alarm)) personal alarm "personal alarm":http://cyctecnologias.com/myadmin/backup/dump/topic-1113.htm [http|http://share-share.org/new/attachment/images/sitemap.html] http://share-share.org/new/attachment/images/sitemap.html http [http://share-share.org/new/attachment/images/sitemap.html|http] ((http://share-share.org/new/attachment/images/sitemap.html http)) http "http":http://share-share.org/new/attachment/images/sitemap.html [ejb video|http://www.algenib.com/guestfriend/thumbs/comment-2639.html] http://www.algenib.com/guestfriend/thumbs/comment-2639.html ejb video [http://www.algenib.com/guestfriend/thumbs/comment-2639.html|ejb video] ((http://www.algenib.com/guestfriend/thumbs/comment-2639.html ejb video)) ejb video "ejb video":http://www.algenib.com/guestfriend/thumbs/comment-2639.html [perfect window singapore|http://blogscr.com/wp-content/avatars/pics/news-204-20090901.html] http://blogscr.com/wp-content/avatars/pics/news-204-20090901.html perfect window singapore [http://blogscr.com/wp-content/avatars/pics/news-204-20090901.html|perfect window singapore] ((http://blogscr.com/wp-content/avatars/pics/news-204-20090901.html perfect window singapore)) perfect window singapore "perfect window singapore":http://blogscr.com/wp-content/avatars/pics/news-204-20090901.html [movie in 2002|http://amestudios.com/zen/zc1/images/thumbs/news-2351-20090827.html] http://amestudios.com/zen/zc1/images/thumbs/news-2351-20090827.html movie in 2002 [http://amestudios.com/zen/zc1/images/thumbs/news-2351-20090827.html|movie in 2002] ((http://amestudios.com/zen/zc1/images/thumbs/news-2351-20090827.html movie in 2002)) movie in 2002 "movie in 2002":http://amestudios.com/zen/zc1/images/thumbs/news-2351-20090827.html [partition magic 6.0 serial number|http://share-share.org/new/attachment/images/comment-717.html] http://share-share.org/new/attachment/images/comment-717.html partition magic 6.0 serial number [http://share-share.org/new/attachment/images/comment-717.html|partition magic 6.0 serial number] ((http://share-share.org/new/attachment/images/comment-717.html partition magic 6.0 serial number)) partition magic 6.0 serial number "partition magic 6.0 serial number":http://share-share.org/new/attachment/images/comment-717.html [little johnny jokes|http://porodicni-forum.com/forum/store/files/page1801.html] http://porodicni-forum.com/forum/store/files/page1801.html little johnny jokes [http://porodicni-forum.com/forum/store/files/page1801.html|little johnny jokes] ((http://porodicni-forum.com/forum/store/files/page1801.html little johnny jokes)) little johnny jokes "little johnny jokes":http://porodicni-forum.com/forum/store/files/page1801.html [iranian personality|http://amestudios.com/zen/zc1/images/thumbs/news-2361-20090902.html] http://amestudios.com/zen/zc1/images/thumbs/news-2361-20090902.html iranian personality [http://amestudios.com/zen/zc1/images/thumbs/news-2361-20090902.html|iranian personality] ((http://amestudios.com/zen/zc1/images/thumbs/news-2361-20090902.html iranian personality)) iranian personality "iranian personality":http://amestudios.com/zen/zc1/images/thumbs/news-2361-20090902.html [robert de niro movies list|http://dsrblog.com/wp-content/uploads/2007/news-436-2009-09-05.html] http://dsrblog.com/wp-content/uploads/2007/news-436-2009-09-05.html robert de niro movies list [http://dsrblog.com/wp-content/uploads/2007/news-436-2009-09-05.html|robert de niro movies list] ((http://dsrblog.com/wp-content/uploads/2007/news-436-2009-09-05.html robert de niro movies list)) robert de niro movies list "robert de niro movies list":http://dsrblog.com/wp-content/uploads/2007/news-436-2009-09-05.html [kasparov checkmate crack|http://itsmenotyou.com/wp-content/uploads/2006/article1020.htm] http://itsmenotyou.com/wp-content/uploads/2006/article1020.htm kasparov checkmate crack [http://itsmenotyou.com/wp-content/uploads/2006/article1020.htm|kasparov checkmate crack] ((http://itsmenotyou.com/wp-content/uploads/2006/article1020.htm kasparov checkmate crack)) kasparov checkmate crack "kasparov checkmate crack":http://itsmenotyou.com/wp-content/uploads/2006/article1020.htm [domain|http://share-share.org/new/attachment/images/sitemap.html] http://share-share.org/new/attachment/images/sitemap.html domain [http://share-share.org/new/attachment/images/sitemap.html|domain] ((http://share-share.org/new/attachment/images/sitemap.html domain)) domain "domain":http://share-share.org/new/attachment/images/sitemap.html [northface denali fleece|http://fatbread.com/marybrann/images/article399.html] http://fatbread.com/marybrann/images/article399.html northface denali fleece [http://fatbread.com/marybrann/images/article399.html|northface denali fleece] ((http://fatbread.com/marybrann/images/article399.html northface denali fleece)) northface denali fleece "northface denali fleece":http://fatbread.com/marybrann/images/article399.html [anti aging moisturizer|http://musaonce.com/wp-content/uploads/2008/page2114.html] http://musaonce.com/wp-content/uploads/2008/page2114.html anti aging moisturizer [http://musaonce.com/wp-content/uploads/2008/page2114.html|anti aging moisturizer] ((http://musaonce.com/wp-content/uploads/2008/page2114.html anti aging moisturizer)) anti aging moisturizer "anti aging moisturizer":http://musaonce.com/wp-content/uploads/2008/page2114.html [anhydrous copper sulphate|http://dsrblog.com/wp-content/uploads/2007/news-1214-2009-09-02.html] http://dsrblog.com/wp-content/uploads/2007/news-1214-2009-09-02.html anhydrous copper sulphate [http://dsrblog.com/wp-content/uploads/2007/news-1214-2009-09-02.html|anhydrous copper sulphate] ((http://dsrblog.com/wp-content/uploads/2007/news-1214-2009-09-02.html anhydrous copper sulphate)) anhydrous copper sulphate "anhydrous copper sulphate":http://dsrblog.com/wp-content/uploads/2007/news-1214-2009-09-02.html [webmap|http://share-share.org/new/attachment/images/sitemap.html] http://share-share.org/new/attachment/images/sitemap.html webmap [http://share-share.org/new/attachment/images/sitemap.html|webmap] ((http://share-share.org/new/attachment/images/sitemap.html webmap)) webmap "webmap":http://share-share.org/new/attachment/images/sitemap.html [nero mpeg4 serial|http://www.algenib.com/guestfriend/thumbs/comment-807.html] http://www.algenib.com/guestfriend/thumbs/comment-807.html nero mpeg4 serial [http://www.algenib.com/guestfriend/thumbs/comment-807.html|nero mpeg4 serial] ((http://www.algenib.com/guestfriend/thumbs/comment-807.html nero mpeg4 serial)) nero mpeg4 serial "nero mpeg4 serial":http://www.algenib.com/guestfriend/thumbs/comment-807.html [milfs for cash|http://lettershop-nyc.com/clientuploads/thumbs/topic340.htm] http://lettershop-nyc.com/clientuploads/thumbs/topic340.htm milfs for cash [http://lettershop-nyc.com/clientuploads/thumbs/topic340.htm|milfs for cash] ((http://lettershop-nyc.com/clientuploads/thumbs/topic340.htm milfs for cash)) milfs for cash "milfs for cash":http://lettershop-nyc.com/clientuploads/thumbs/topic340.htm [ice cube movie are we there yet|http://lettershop-nyc.com/clientuploads/thumbs/topic786.htm] [[http://lettershop-nyc.com/clientuploads/thumbs/topic786.htm ice cube m

AuthUser

administrators (intermediate)

AuthUser is PmWiki's identity-based authorization system that allows access to pages to be controlled through the use of usernames and passwords. AuthUser can be used in addition to the password-based scheme that is PmWiki's default configuration.

AuthUser is a very flexible system for managing access control on pages, but flexibility can also bring complexity and increased maintenance overhead to the wiki administrator. This is why PmWiki defaults to the simpler password-based system. For some thoughts about the relative merits of the two approaches, see PmWiki:ThoughtsOnAccessControl.

Activating AuthUser

To activate PmWiki's identity-based system, add the following line to local/config.php:

    include_once("$FarmD/scripts/authuser.php");

Creating user accounts

Most of AuthUser's configuration is performed via the Site.AuthUser page. To change the AuthUser configuration, simply edit this page like any other wiki page (you'll typically need to use the site's admin password for this).

To create a login account, simply add lines to Site.AuthUser that look like:

    username: (:encrypt password:)

For example, to create a login account for "alice" with a password of "wonderland", enter:

    alice: (:encrypt wonderland:)

When the page is saved, the "(:encrypt wonderland:)" part of the text will be replaced by an encrypted form of the password "wonderland". This encryption is done so that someone looking at the Site.AuthUser page cannot easily determine the passwords stored in the page.

For greater security, place a read password on the Site.AuthUser page.

To change or reset an account's password, simply replace the encrypted string with another (:encrypt:) directive.

Controlling access to pages by login

Pages and groups can be protected based on login account by using "passwords" of the form id:username in the password fields of ?action=attr (see PmWiki.Passwords). For example, to restrict a page to being edited by Alice, one would set the password to "id:alice".

It's possible to use multiple "id:" declarations and passwords in the ?action=attr form, thus the following setting would allow access to Alice, Carol, and anyone who knows the password "quick":

    quick id:alice,carol

To allow access to anyone who has successfully logged in, use "id:*".

One can also perform site-wide restrictions based on identity in the $DefaultPasswords array: e.g.

    # require valid login before viewing pages
    $DefaultPasswords['read'] = 'id:*';
    # Alice and carol may edit
    $DefaultPasswords['edit'] = 'id:alice,carol';
    # All admins and Fred may edit
    $DefaultPasswords['edit'] = array('@admins', 'id:Fred');

You can change the $DefaultPasswords array in local customization files such as:

  • local/config.php (for entire wiki)
  • farmconfig.php (for entire wikifarm)

Organizing accounts into groups

AuthUser also makes it possible to group login accounts together into authorization groups, indicated by a leading "@" sign. As with login accounts, group memberships are maintained by editing the Site.AuthUser page. Group memberships can be specified by either listing the groups for a login account (person belongs to groups) or the login accounts for a group (group includes people). You can repeat or mix-and-match the two kinds as desired:

    @writers: alice, bob
    carol: @writers, @editors
    @admins: alice, dave

Then, to restrict page access to a particular group, simply use "@group" as the "password" in ?action=attr or the $DefaultPasswords array, similar to the way that "id:username" is used to restrict access to specific login accounts.

Excluding individuals from password groups

Group password memberships are maintained by editing the Site.AuthUser page. To specify a password group that allows access to anyone who is authenticated, you can specify:

    @wholeoffice: *

If you need to keep "Fred" out of this password group, you might try:

    @wholeoffice: *, -Fred

... but this does not work. You can, however, get the desired result by using the first setting (@wholeoffice: *) on the Site.AuthUser page and then setting the password for the page or group you wish to protect in ?action=attr or the $DefaultPasswords array to "id:*, -Fred".

Getting account names and passwords from external sources

The AuthUser script has the capability of obtaining username/password pairs from places other than the Site.AuthUser page, such as passwd-formatted files (usually called '.htpasswd' on Apache servers), LDAP servers, or even the local/config.php file.

Passwd-formatted files (.htpasswd/.htgroup)

Passwd-formatted files, commonly called .htpasswd files in Apache, are text files where each line contains a username and an encrypted password separated by a colon. A typical .htpasswd file might look like:

    alice:vK99sgDV1an6I
    carol:Q1kSeNcTfwqjs

To get AuthUser to obtain usernames and passwords from a .htaccess file, add the following line to Site.AuthUser, replacing "/path/to/.htpasswd" with the filesystem path of the .htpasswd file:

    htpasswd: /path/to/.htpasswd

Creation and maintenance of the .htpasswd file can be performed using a text editor, or any number of other third-party tools available for maintaining .htpasswd files. The Apache web server typically includes an htpasswd command for creating accounts in .htpasswd:

    $ htpasswd /path/to/.htpasswd alice
    New password:
    Re-type new password:
    Adding password for user alice
    $

Similarly, one can use .htgroup formatted files to specify group memberships. Each line has the name of a group (without the "@"), followed by a colon, followed by a space separated list of usernames in the group.

    writers: carol
    editors: alice carol bob
    admins: alice dave

Note that the groups are still "@writers", "@editors", and "@admins" in PmWiki even though the file doesn't specify the @ signs. To get AuthUser to load these groups, use a line in Site.AuthUser like:

    htgroup: /path/to/.htgroup

Configuration via local/config.php

AuthUser configuration settings can also be made from the local/config.php file in addition to the Site.AuthUser page. Such settings are placed in the $AuthUser array, and must be set prior to including the authuser.php script. Some examples:

    # set a password for alice
    $AuthUser['alice'] = crypt('wonderland');
    # set a password for carol
    $AuthUser['carol'] = '$1$CknC8zAs$dC8z2vu3UvnIXMfOcGDON0';
    # define the @editors group
    $AuthUser['@editors'] = array('alice', 'carol', 'bob');
    # Use local/.htpasswd for usernames/passwords
    $AuthUser['htpasswd'] = 'local/.htpasswd';
    # Use local/.htgroup for group memberships
    $AuthUser['htgroup'] = 'local/.htgroup';

Configuration via LDAP

Authentication can be performed via an external LDAP server -- simply set an entry for "ldap" in either Site.AuthUser or the local/config.php file.

    # use ldap.airius.com for authentication
    $AuthUser['ldap'] = 'ldap://ldap.airius.com/ou=People,o=Airius?cn?sub';

LDAP authentication in AuthUser closely follows the model used by Apache 2.0's mod_auth_ldap module; see especially the documentation for AuthLDAPUrl for a description of the url format.

For servers that don't allow anonymous binds, AuthUser provides $AuthLDAPBindDN and $AuthLDAPBindPassword variables to specify the binding to be used for searching.

Setting the Author Name

By default, PmWiki will use a login name in the Author field of the edit form, but allows the author to change this value prior to saving. To force the login name to always be used as the author name, use the following sequence to activate AuthUser:

    include_once("$FarmD/scripts/authuser.php");
    $Author = $AuthId;

See Also

<< Passwords administration | Documentation Index | Uploads administration >>

Can I specify authorization group memberships from with local/config.php?

You can as of version 2.1.14 -- simply put the group definition into the $AuthUser array:

        $AuthUser['@editors'] = array('alice', 'carol', 'bob');
Edit - History - Print - Recent Changes - Search
Page last modified on September 22, 2006, at 01:39 PM