[open-ils-commits] r16872 - trunk/Open-ILS/examples (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jul 7 14:48:43 EDT 2010


Author: phasefx
Date: 2010-07-07 14:48:38 -0400 (Wed, 07 Jul 2010)
New Revision: 16872

Modified:
   trunk/Open-ILS/examples/remoteauth.cgi
Log:
Lost my commit msg the first time around, so...

This CGI script might be useful for providing an easy way for EZproxy to authenticate users against an Evergreen instance.

For example, if you modify your eg_vhost.conf by adding this:
<Directory "/openils/var/cgi-bin/ezproxy">
    AddHandler cgi-script .pl
    AllowOverride None
    Options +ExecCGI
    allow from all
</Directory>

and make that directory and copy remoteauth.cgi to it:
mkdir /openils/var/cgi-bin/ezproxy/
cp remoteauth.cgi /openils/var/cgi-bin/ezproxy/

Then you could add a line like this to the users.txt of your EZproxy instance:

::external=https://hostname/cgi-bin/ezproxy/remoteauth.cgi,post=user=^u&passwd=^p



Modified: trunk/Open-ILS/examples/remoteauth.cgi
===================================================================
--- trunk/Open-ILS/examples/remoteauth.cgi	2010-07-07 18:44:13 UTC (rev 16871)
+++ trunk/Open-ILS/examples/remoteauth.cgi	2010-07-07 18:48:38 UTC (rev 16872)
@@ -1,4 +1,25 @@
 #!/usr/bin/perl
+
+#    This CGI script might be useful for providing an easy way for EZproxy to authenticate
+#    users against an Evergreen instance.
+#    
+#    For example, if you modify your eg_vhost.conf by adding this:
+#    <Directory "/openils/var/cgi-bin/ezproxy">
+#        AddHandler cgi-script .pl
+#        AllowOverride None
+#        Options +ExecCGI
+#        allow from all
+#    </Directory>
+#    
+#    and make that directory and copy remoteauth.cgi to it:
+#    mkdir /openils/var/cgi-bin/ezproxy/
+#    cp remoteauth.cgi /openils/var/cgi-bin/ezproxy/
+#    
+#    Then you could add a line like this to the users.txt of your EZproxy instance:
+#    
+#    ::external=https://hostname/cgi-bin/ezproxy/remoteauth.cgi,post=user=^u&passwd=^p
+#
+
 #use strict;
 use warnings;
 



More information about the open-ils-commits mailing list