LP#1528627 Proof of Concept "MasterKey" AuthProxy Module user/csharp/lp1528627_masterkey_poc
authorDan Wells <dbw2@calvin.edu>
Fri, 29 Jan 2016 21:02:32 +0000 (16:02 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 4 Mar 2016 15:22:40 +0000 (10:22 -0500)
commit698c21297c48b5d992ab63b7cd4390852e0358a8
treea2c56b1b9afd082c267ea29e150288e7345e3897
parent22cf746ef809470e630e98b75ac1021c3925e52f
LP#1528627 Proof of Concept "MasterKey" AuthProxy Module

This module allows a user with the "masterkey" password to login as
any other user in the system, similar to root-level "su" in Unix.

USE THIS CODE AND MODULE AT YOUR OWN RISK.

To set up:
- In opensrf.xml, set auth_proxy <enabled> to 'true' (if not already)
- In same file, uncomment the configuration section for MasterKey
  within the auth_proxy configuration area
- Set the <masterkey> to some super-secret value

This has been tested with OPAC logins, but should work with any logins
supported by AuthProxy.pm (e.g. staff logins should work, but may have
developed some bugs since last tested).

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/examples/opensrf.xml.example
Open-ILS/src/perlmods/lib/OpenILS/Application/AuthProxy/MasterKey.pm [new file with mode: 0644]