
ioplex at gmail
Sep 27, 2008, 8:59 PM
Post #3 of 3
(121 views)
Permalink
|
|
Re: Are there any wgGroupPermisions Related Hooks?
[In reply to]
|
|
On Mon, Sep 8, 2008 at 10:28 AM, Lane, Ryan <Ryan.Lane[at]ocean.navo.navy.mil> wrote: >> Then, at authentication time the $wgGroupPermissions array could be >> populated based on whether or not the user is in these groups like: >> >> foreach ($myGroupMap as $mwGroup => $adGroup) { >> if (plexcel_is_member_of($adGroup)) { >> $wgGroupPermissions[$mwGroup] = ??? >> } >> } >> >> It seems dynamically adding people to MW groups does not degrade the >> existing security mechansims of MW. >> >> Of course the '???' part is a blur - are there any hooks for >> this sort of thing? >> > > Are you trying to add a user to MediaWiki groups, or are you trying to > add permissions to a group? > > It looks like you are trying to add permissions. Why not instead > synchronize the user's groups from AD, to MediaWiki? Then admins can > assign permissions to LDAP groups via MediaWiki like they normally do. > > See the LDAP Authentication plugin, specifically the "setGroups" > function. Hi Ryan, As you always know what to do. Using addGroup I was able to add "Windows Group Mapping" to our Plexcel MediaWiki Plugin so that people can push MW group membership management into AD. The LocalSettings.php directive looks like: $wgAuth->groupMap = array( 'ACME\\Wiki Bureaucrats' => 'bureaucrat', 'ACME\\Wiki Sysops' => 'sysop', ); So whoever is in the 'ACME\Wiki Bureaucrats' Windows group will be automatically added to the bureaucrats group. Brilliant! Thanks again, Mike -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.ioplex.com/ _______________________________________________ MediaWiki-l mailing list MediaWiki-l[at]lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
|