Get Shibboleth environment variables with Python

James Dore james.dore at new.ox.ac.uk
Fri May 16 09:49:52 EDT 2014


On 14 May 2014, at 17:32, Cantor, Scott <cantor.2 at osu.edu> wrote:

> On 5/14/14, 11:00 AM, "James Dore" <james.dore at new.ox.ac.uk> wrote:
>>> Leave Python out of it at first (same goes for any language/API).
>>> 
>>> First check httpd's access log, it will log REMOTE_USER if it is set.
>> 
>> Ah - nothing is logged.
> 
> That's not consistent with the rest of your post, if the log you're
> looking at is the one where the SP is running, since your log shows EPPN
> being received and it's mapped to REMOTE_USER.

You’re right - I flushed the logs and tried again: 

129.67.108.109 - bodl0032 at ox.ac.uk [16/May/2014:14:28:21 +0100] "GET /secure/login-unrestricted.html?sip=129.67.111.137&mac=c4017c189c60&client_mac=1caba7b1c10b&uip=129.67.108.109&lid=&dn=newcwifi.new.ox.ac.uk&url=http%3a%2f%2fwww%2ethinkdifferent%2eus%2fWHShM5X87IKpcPM%2fvSfR5mmI46Snddl%2fEEMHWOaJt0i7NxZ%2fs1R4nBTXukwU1vR%2fj0nGAERy2JNwP0p%2ehtml&ssid=NewcSSOWifi&loc=12OB4+%2dJLL+Office&vlan=1 HTTP/1.1" 200 1412
129.67.108.109 - - [16/May/2014:14:28:21 +0100] "GET /secure/login-unrestricted.html?sip=129.67.111.137&mac=c4017c189c60&client_mac=1caba7b1c10b&uip=129.67.108.109&lid=&dn=newcwifi.new.ox.ac.uk&url=http%3a%2f%2fwww%2ethinkdifferent%2eus%2fWHShM5X87IKpcPM%2fvSfR5mmI46Snddl%2fEEMHWOaJt0i7NxZ%2fs1R4nBTXukwU1vR%2fj0nGAERy2JNwP0p%2ehtml&ssid=NewcSSOWifi&loc=12OB4+%2dJLL+Office&vlan=1 HTTP/1.0" 302 816
129.67.108.109 - bodl0032 at ox.ac.uk [16/May/2014:14:28:21 +0100] "GET /secure/hotspot.js HTTP/1.1" 200 5519
129.67.108.109 - bodl0032 at ox.ac.uk [16/May/2014:14:28:21 +0100] "GET /secure/images/RuckusLogo.jpg HTTP/1.1" 200 28449

More like it. bodl0032 at ox.ac.uk is my eppn value; I suspect it was just lost in the large log file. 

Cheers,
J



More information about the users mailing list