This script allows you to setup an authority that will only authorize certain users depending on their GID while allowing them to use their regular password, securely.
Usage for users
Code: Select all
/login username@theproxy/yourauthority
Code: Select all
/login epsy@tst.armagetron.co.uk/staff/forums
Installation
Place stafflogin.php at where you want your authority to be (without the /armaauth/0.1/ part) and throw this in your .htaccess (replacing paths):
Code: Select all
RewriteRule ^(.+)/armaauth/0\.1/? /absolute/sytem/path/to/stafflogin.php?foreignauthority=$1 [QSA,L]
RewriteRule ^(.+)/armaauth/0\.1/?\??(.*) /absolute/sytem/path/to/stafflogin.php?foreignauthority=$1&$2 [QSA,L]
Licensing
This is GPL-licensed and shares authors with armagetronad (It has some snipplets from the reference authentication authority implementation).
Download