Author: jyelon
Description:
I have provided code for this enhancement. It allows the wiki to grant
privileges based on the IP address of the user. You use it by putting this sort
of thing into your LocalSettings.php:
$wgIpAddressRanges = array(
"192.168.*.*" => "mycompany"
);
$wgGroupPermissions["mycompany","createaccount"] = true;
Here is the code that implements this feature:
http://panda3d.org/josh/ip-privileges.patch
The patch is against 1.7.1. The total amount of code in this patch is only
about two dozen lines. I should warn you that I'm not a particularly
experienced mediawiki coder, so somebody who knows what they're doing should
definitely read over the code. Fortunately, that should only take a minute,
since it's so short.
The particular situation that led me to implement this feature is as follows. I
work at a university, and we want a wiki where only university students can
create accounts, but where anyone can read the wiki. Since we have thousands of
students, and thousands more every semester, it is impractical to assign
privileges by handing out accounts. Doing it by IP address range makes more sense.
If you have time, let me know if you integrate this patch. jyelon@gmail.com
Version: unspecified
Severity: enhancement