Lost my commit msg the first time around, so...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Jul 2010 18:48:38 +0000 (18:48 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Jul 2010 18:48:38 +0000 (18:48 +0000)
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

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16872 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/remoteauth.cgi

index 4529b7c..c50725d 100755 (executable)
@@ -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;