V3lop5 / ilias-downloader

Download files from your ilias courses and keeps your local copy up to date.
GNU General Public License v3.0
8 stars 5 forks source link

[Uni Karlsruhe] KIT - Failed sending login #11

Open freedome97 opened 2 years ago

freedome97 commented 2 years ago

I tried adding a config for the KIT Karlsruhe. I am unsure about the "PREFIX", since we do not have a prefix in the URL

Here my config:

# Config for KIT Karlsruhe
ILIAS_URL="https://ilias.studium.kit.edu/"
ILIAS_PREFIX="produktiv"
ILIAS_LOGIN_GET="login.php?client_id=produktiv&cmd=force_login&lang=de"
ILIAS_HOME="ilias.php?cmd=show&cmdClass=ildashboardgui&cmdNode=9c&baseClass=ilDashboardGUI"
ILIAS_LOGOUT="logout.php?lang=de"
ILIAS_EXC_BUTTON_DESC="Herunterladen"

Furthermore do I receive an error while executing the first step (initializing): image

Thanks for the answer in advance.

V3lop5 commented 2 years ago

Hi @freedome97,

produktiv might be the correct prefix for you. On the bottom of every ilias page there is a link to this page. For me it shows https://www.ili.fh-aachen.de/goto_elearning_crs_123456.html when i open a course/module. The prefix in my case is elearning.

I'm not quite sure where the problem is. When opening https://ilias.studium.kit.edu/login.php?client_id=produktiv&cmd=force_login&lang=de I receive this mask: image This is the correct page and should work.

The script is only capable to login with "Lokales Gast-Konto". Do you have one of those?

The error Failed sending login information: 23. occurs in line 137. You might add a echo "ILIAS_LOGIN_POST is $ILIAS_LOGIN_POST" after line 133 to debug this. It should be something like

ilias.php?lang=de&client_id=produktiv&cmd=post&cmdClass=ilstartupgui&cmdNode=10a&baseClass=ilStartUpGUI&rtoken=