Closed jovanbulck closed 9 years ago
Very interesting, two RC codes! Rare artifact! Thanks for reporting.
Ok, I figured it out:
When connecting to kotnet on a KU Leuven residence, the institution seems to be "kuleuven-campusnet", instead of simply "kuleuven".
Recall that we hardcoded the institution in the netlogin URL (see issue #63 ) to gain speed. Line 35 in browser.py
(on dev
branch)
## the login url containing the institution choice
NETLOGIN_URL = "https://netlogin.kuleuven.be/cgi-bin/wayf2.pl?inst=kuleuven&lang=nl&submit=Ga+verder+%2F+Continue"
Everything works nice and fine when changing this line to:
NETLOGIN_URL = "https://netlogin.kuleuven.be/cgi-bin/wayf2.pl?inst=kuleuven-campusnet&lang=nl&submit=Ga+verder+%2F+Continue"
On the longer term, we should allow the end-user to specify his/her institution of choice via a command line option and/or a config file. This will be needed anyway for non-kuleuven users (eg khleuven). Moreover, the documentation should clearly state that KU Leuven residence users should specify "kuleuven-campusnet".
I'll start writing a commit to implement the proposed solution via a command line option...
Fixed :-)
From the commit message:
We still have to look into:
When logging in to campusnet (netlogin.kuleuven.be/campusnet) I got the following unknown error code: