[Xerte] Re: Moodle Authentication Loop
Tom Luxon
Tom.Luxon at occam-dm.com
Mon Oct 7 10:42:15 BST 2013
No I kept the browser windows open.
If I login to moodle, close the browser and then open a browser with the xerte URL I am redirected to the moodle login page again :(.
Yes I am using Windows 2008 R2 and IIS 7.5
Kind Regards
Tom Luxon
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 07 October 2013 10:12
To: 'Xerte discussion list'
Subject: [Xerte] Re: Moodle Authentication Loop
Did you close all browser windows between those steps?
The fact that it all works via guest is good means Xerte is working fine.
The fact that with the integration path set you get redirected to login to moodle is good that means the integration path is correct.
Change auth_config.php to moodle and comment out guest.
Close all browser windows or try a different browser and vist the xerte url - you should be redirected to moodle.
Login to moodle and if you have xerte in the moodle directory you should be redirected to Moodle. If it's in a separate directory the in the same browser window visit the xerte url and you should be logged in? If not then xerte isn't picking up the Moodle session data.
The fact that you mention inetpub suggests this is Windows and IIS? I don't have access to a Windows/IIS setup right now but someone else may be able to advise if there is any IIS configuration settings to control/restrict session data?
HTH
Ron
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Luxon
Sent: 07 October 2013 09:22
To: Xerte discussion list
Subject: [Xerte] Re: Moodle Authentication Loop
Morning,
I have followed the instructions in the moodle_integration_readme.txt, but just to confirm here:
I went to the management.php page and entered "/inetpub/xerte/moodle/config.php" into the integration field.
Changed the auth_config.php to moodle authentication.
I then went to the xerte url and was redirected to moodle, entered my AD creds and was accepted into moodle. Clicked the link back to xerte and appear back at the moodle login page, d'oh!!!
I reverted what I had changed apart from the management.php page as whenever I log in as admin to xerte management.php the site tells me "the feature is for administrators only".
Help!
Thanks
Kind Regards
Tom Luxon
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 04 October 2013 19:19
To: Xerte discussion list
Subject: [Xerte] Re: Moodle Authentication Loop
Tom,
In the zip file (or in your installation folder) you can find a folder documentation. In that folder you can find moodle_integration_readme.txt.
Tom
Op 4-10-2013 18:24, Tom Luxon schreef:
Thanks Ron.
Now that I have removed those files Xerte works under the guest account. I can't seem to locate the integration instructions you mention though?
Kind Regards
Tom Luxon
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 03 October 2013 19:30
To: 'Xerte discussion list'
Subject: [Xerte] Re: Moodle Authentication Loop
Hi Tom
ah I did wonder! :-(
That patch that you refer to is very old and applies to XOT versions prior to 1.8!
You need to put the xot version 2 files back e.g. the ones you replaced and then follow the instructions in the moodle readme inside the documentation folder.
In short the old moodle patch stuff was built-in to the XOT code from at least 1.8 onwards so no need for a separate patch for ages.
You'll need to add the path to moodle config via the management.php page in the integration path field but make sure the install works via guest authentication first.
Now that we know the problem I doubt you need to worry about the moodle cookie prefix.
HTH
Ron
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Luxon
Sent: 03 October 2013 16:40
To: Xerte discussion list
Subject: [Xerte] Re: Moodle Authentication Loop
Hi Ron,
Thanks for your reply.
I am using Xerte Toolkits 2.0.
If I set auth_config to:
$xerte_toolkits_site->authentication_method = 'Guest';
//$xerte_toolkits_site->authentication_method = 'Ldap';
//$xerte_toolkits_site->authentication_method = 'Db';
//$xerte_toolkits_site->authentication_method = 'Static';
//$xerte_toolkits_site->authentication_method = "Moodle";
Then it still redirects to the moodle page and starts looping.
If I login to moodle first and then click the hyperlink I made to xerte it loops back to the moodle logon page.
I installed xerte first, and then moodle - my method of moodle integration followed Ron Mitchell's patch guide where there are 5 files to change in the xerte directory:
session.php
management.php
index.php
config.php (if using 1.6 or later)
\website_code\php\scorm\export.php
How would I add a cookie prefix?
Thanks
Kind Regards
Tom Luxon
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 03 October 2013 15:07
To: 'Xerte discussion list'
Subject: [Xerte] Re: Moodle Authentication Loop
What version of XOT are you using?
Does it all work with auth_config.php set to guest?
What happens if you login to moodle first and then follow the link to xot?
The fact that you are being redirected when visiting xerte first suggests the integration path is correct - did you add that during install or via management.php?
Can you try adding a cookie prefix in Moodle and try again? Although watch that it will log people out when you change it so do it off-peak.
Just a few thoughts.
Ron
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Luxon
Sent: 01 October 2013 17:13
To: Xerte discussion list
Subject: [Xerte] Re: Moodle Authentication Loop
Hi,
Yes they are both installed on the same server under the same folder structure.
Thanks
Kind Regards
Tom Luxon
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 27 September 2013 14:42
To: 'Xerte discussion list'
Subject: [Xerte] Re: Moodle Authentication Loop
It sounds like http://SERVERIP/xertetoolkits can't access the session info from http://SERVERIP/moodle/ are theu both on the same server?
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Luxon
Sent: 26 September 2013 09:39
To: xerte at lists.nottingham.ac.uk<mailto:xerte at lists.nottingham.ac.uk>
Subject: [Xerte] Moodle Authentication Loop
Hi There,
I have tried to setup Moodle authentication with Xerte but have encountered a slight problem, please could you help?
What happens is:
1. I navigate to http://SERVERIP/xertetoolkits
2. This redirects me to http://SERVERIP/moodle/login/index.php from where I am able to enter my AD username and password successfully. I am logged into moodle where I then click a link I added (http://SERVERIP/xertetoolkits) which should take me back to the xerte site..... (the link is there as I have not installed xerte within moodle)
3. When I click the link or enter the xerte address in the same browser window I get directed back the moodle login page.
Can someone please tell me where I have gone wrong?
Thank you
Kind Regards
Tom Luxon
[cid:image001.jpg at 01CEC349.968C7760]<http://www.occam-dm.com/>
________________________________
This email message has been delivered safely and archived online by Mimecast.
For more information please visit http://www.mimecast.com
________________________________
________________________________
This email message has been delivered safely and archived online by Mimecast.
For more information please visit http://www.mimecast.com
________________________________
________________________________
This email message has been delivered safely and archived online by Mimecast.
For more information please visit http://www.mimecast.com
________________________________
________________________________
This email message has been delivered safely and archived online by Mimecast.
For more information please visit http://www.mimecast.com
________________________________
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
________________________________
This email message has been delivered safely and archived online by Mimecast.
For more information please visit http://www.mimecast.com
________________________________
--------------------------------------------------------------------------------------
This email message has been delivered safely and archived online by Mimecast.
For more information please visit http://www.mimecast.com
---------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20131007/0268d7aa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3374 bytes
Desc: image001.jpg
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20131007/0268d7aa/attachment-0001.jpg>
More information about the Xerte
mailing list