logo       

Re: usagelimit with CGI authentication: msg#00169

education.ezproxy

Subject: Re: usagelimit with CGI authentication

Thanks Chris. I think I have this working - I'm using your ezpauth.pl
code, so I just set $ezploguser before calling StartSession() and
everything appears to work.

-----Original Message-----
From: Chris Zagar [mailto:zagar@xxxxxxxxxxxxxxxxxxx]
Sent: February 21, 2006 5:49 PM
To: EZProxy discussion list
Subject: [ezproxy] 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: epp@xxxxxxxxxx
To unsubscribe send a blank email to leave-ezproxy-58098R@xxxxxxxxxxx

---
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