logo       

Re: usagelimit with CGI authentication: msg#00168

education.ezproxy

Subject: Re: usagelimit with CGI authentication

The support page for the UsageLimit option
(http://www.usefulutilities.com/support/cfg/usagelimit/) says that "If
you use CGI authentication, your CGI authentication must be configured
to provide username information to EZproxy for UsageLimits to work
properly." I'm not clear on exactly what my CGI script needs to do.

In the script in the section traditional called StartSession, you construct a URL to connect to EZproxy to create the new session. That URL often ends up looking like:

http://ezproxy.yourlib.org:2048/login?
user=cgiuser&pass=cgipass&url=http://www.somedb.com/

To augement this with the username that EZproxy should use for logging purposes, usage limits, etc., you add another parameter of loguser with the value for logging, such as:

http://ezproxy.yourlib.org:2048/login?
user=cgiuser&pass=cgipass&loguser=someuser&url=http://www.somedb.com/

It is absolutely crucial that the user "cgiuser" appear on a line in ezproxy.usr that also has cgi= in the third part (or qcgi= if you happen to use that format), as the presence of these options is what authorizes loguser to provide an overriding username.

If you have any questions on how to integrate this specific detail into your script, please let me know.

Chris

--
Chris Zagar <zagar@xxxxxxxxxxxxxxxxxxx>
Useful Utilities <http://www.usefulutilities.com>


---
You are currently subscribed to ezproxy as: gee-ezproxy@xxxxxxxxx
To unsubscribe send a blank email to leave-ezproxy-58098R@xxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise