]> scripts.mit.edu Git - www/raw.git/commitdiff
Import from TextPattern
authorGeoffrey Thomas <geofft@mit.edu>
Mon, 14 Mar 2011 06:42:59 +0000 (02:42 -0400)
committerGeoffrey Thomas <geofft@mit.edu>
Mon, 14 Mar 2011 06:42:59 +0000 (02:42 -0400)
faq/130.mdwn [new file with mode: 0644]

diff --git a/faq/130.mdwn b/faq/130.mdwn
new file mode 100644 (file)
index 0000000..e447986
--- /dev/null
@@ -0,0 +1,25 @@
+[[!meta title="Can I grant permissions to users based on moira lists?"]]
+You can automatically add users to
+[MediaWiki groups](http://www.mediawiki.org/wiki/Manual:User_rights)
+based on membership in AFS groups.
+
+1)
+[Authenticate users with certificates](http://scripts.mit.edu/faq/129/how-do-i-authenticate-users-with-certificates)
+
+\2) Copy the
+ [Moira extension](http://web.mit.edu/scripts/www/mediawiki-auth/Moira.php)
+ to `extensions/Moira.php`
+
+\3) Add the following to `LocalSettings.php`:
+
+    require_once('extensions/Moira.php');
+    $moiraGroup['your-acl'] = array('bureaucrat','sysop');
+    $moiraGroup['other-acl'] = array('ninja');
+    # other group configurations
+
+Please note that this code is not supported by scripts. We provide
+this only as a convenience to our users. Feel free to modify the
+extension to suit your needs.
+
+
+