<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle25
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle26
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link="#0563C1" vlink="#954F72">
<div class=WordSection1><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'>Thanks Ron.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'>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?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'>Kind Regards<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'>Tom Luxon<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Ron Mitchell<br><b>Sent:</b> 03 October 2013 19:30<br><b>To:</b> 'Xerte discussion list'<br><b>Subject:</b> [Xerte] Re: Moodle Authentication Loop<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Hi Tom<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ah I did wonder! :-(<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>That patch that you refer to is very old and applies to XOT versions prior to 1.8!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Now that we know the problem I doubt you need to worry about the moodle cookie prefix.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>HTH<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Ron<o:p></o:p></span></p><p class=MsoNormal><a name="_MailEndCompose"></a><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Tom Luxon<br><b>Sent:</b> 03 October 2013 16:40<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Re: Moodle Authentication Loop<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Hi Ron,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks for your reply.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I am using Xerte Toolkits 2.0.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>If I set auth_config to:<o:p></o:p></span></p><p class=MsoNormal><i><span style='color:#1F497D'>$xerte_toolkits_site->authentication_method = 'Guest';<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'>//$xerte_toolkits_site->authentication_method = 'Ldap';<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'>//$xerte_toolkits_site->authentication_method = 'Db';<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'>//$xerte_toolkits_site->authentication_method = 'Static';<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'>//$xerte_toolkits_site->authentication_method = "Moodle";<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:#1F497D'><o:p> </o:p></span></i></p><p class=MsoNormal><span style='color:#1F497D'>Then it still redirects to the moodle page and starts looping.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>If I login to moodle first and then click the hyperlink I made to xerte it loops back to the moodle logon page.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>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:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>session.php<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>management.php<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>index.php<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>config.php (if using 1.6 or later)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>\website_code\php\scorm\export.php<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>How would I add a cookie prefix?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D'>Kind Regards<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Tom Luxon<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Ron Mitchell<br><b>Sent:</b> 03 October 2013 15:07<br><b>To:</b> 'Xerte discussion list'<br><b>Subject:</b> [Xerte] Re: Moodle Authentication Loop<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>What version of XOT are you using?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Does it all work with auth_config.php set to guest?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>What happens if you login to moodle first and then follow the link to xot?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>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?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Just a few thoughts. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Ron<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Tom Luxon<br><b>Sent:</b> 01 October 2013 17:13<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Re: Moodle Authentication Loop<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Yes they are both installed on the same server under the same folder structure.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D'>Kind Regards<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Tom Luxon<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Ron Mitchell<br><b>Sent:</b> 27 September 2013 14:42<br><b>To:</b> 'Xerte discussion list'<br><b>Subject:</b> [Xerte] Re: Moodle Authentication Loop<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>It sounds like <a href="http://SERVERIP/xertetoolkits">http://SERVERIP/xertetoolkits</a> can't access the session info from <a href="http://SERVERIP/moodle/">http://SERVERIP/moodle/</a> are theu both on the same server?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Tom Luxon<br><b>Sent:</b> 26 September 2013 09:39<br><b>To:</b> <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br><b>Subject:</b> [Xerte] Moodle Authentication Loop<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi There,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have tried to setup Moodle authentication with Xerte but have encountered a slight problem, please could you help?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What happens is:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt'>1.<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'> </span>I navigate to <a href="http://SERVERIP/xertetoolkits">http://SERVERIP/xertetoolkits</a><o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt'>2.<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'> </span>This redirects me to <a href="http://SERVERIP/moodle/login/index.php">http://SERVERIP/moodle/login/index.php</a> 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 (<a href="http://SERVERIP/xertetoolkits">http://SERVERIP/xertetoolkits</a>) which should take me back to the xerte site….. (the link is there as I have not installed xerte within moodle)<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt'>3.<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'> </span>When I click the link or enter the xerte address in the same browser window I get directed back the moodle login page.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Can someone please tell me where I have gone wrong?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Kind Regards<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Tom Luxon<o:p></o:p></span></b></p><p class=MsoNormal><a href="http://www.occam-dm.com/"><span style='color:blue;text-decoration:none'><img border=0 width=175 height=67 id="Picture_x0020_1" src="cid:image001.jpg@01CEC126.8A873D80" alt="Description: cid:image001.jpg@01CD6C05.46106BD0"></span></a><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><hr size=3 width="100%" align=center></span></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This email message has been delivered safely and archived online by Mimecast.<br>For more information please visit <a href="http://www.mimecast.com">http://www.mimecast.com</a> <o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><hr size=3 width="100%" align=center></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><hr size=3 width="100%" align=center></span></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This email message has been delivered safely and archived online by Mimecast.<br>For more information please visit <a href="http://www.mimecast.com">http://www.mimecast.com</a> <o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><hr size=3 width="100%" align=center></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><hr size=3 width="100%" align=center></span></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>This email message has been delivered safely and archived online by Mimecast.<br>For more information please visit <a href="http://www.mimecast.com">http://www.mimecast.com</a> <o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><hr size=3 width="100%" align=center></span></div></div>
<BR>
<BR>
<span style="font-family:Arial; Font-size:10.0pt">
<hr width="100%">
This email message has been delivered safely and archived online by Mimecast.<BR>
For more information please visit <a href="http://www.mimecast.com">http://www.mimecast.com</a>
<hr width="100%">
</span>
</body></html>