<div dir="ltr"><div><div><div><div>Hi John,<br><br></div>That was the route I was initially attempting, but ended confused as to what I should or shouldn't have included in my 'Shib.php' script.<br></div>Could I hack the 'Ldap.php' script for example, just leaving in the public functions getUsername, getFirstname and getSurname to return the values passed forward from the Shibboleth IdP?<br>
<br></div>Cheers,<br><br></div>Bruce<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 July 2013 10:20, Smith, John <span dir="ltr"><<a href="mailto:J.J.Smith@gcu.ac.uk" target="_blank">J.J.Smith@gcu.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'd advise NOT altering the core files (you will then run into upgrade probs in the future for one) but looking in \library\Xerte\Authentication and creating a new Shibboleth authentication class that is abstracted out and should then be able to just slot in...<br>
<br>
Then it should only be a case of adding a new authentication method to auth_config<br>
<br>
Regards,<br>
<br>
John Smith | Learning Technologist<br>
Room A251, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University<br>
Cowcaddens Road | Glasgow | G4 0BA<br>
________________________________________<br>
From: <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">xerte-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Bruce Jackson [<a href="mailto:bj1@soas.ac.uk">bj1@soas.ac.uk</a>]<br>
Sent: 22 July 2013 10:04<br>
To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>
Subject: [Xerte] Shibbolising XOT<br>
<div><div class="h5"><br>
Hello,<br>
<br>
We're trying to get Shibboleth working as a method of authentication here.<br>
<br>
>From a thread on this forum back in November 2010 (<a href="http://lists.nottingham.ac.uk/pipermail/xerte/2010-November/007360.html" target="_blank">http://lists.nottingham.ac.uk/pipermail/xerte/2010-November/007360.html</a>), and from reading the comments in the integration.txt file, it appears it should be a fairly simple case of editing integration.txt to set the three variables ($_SESSION['toolkits_firstname'], $_SESSION['toolkits_surname'] and $_SESSION['toolkits_logon_username']) to values obtained from the Shibboleth IdP, adding a call "session_start()" at the beginning of the script, and then renaming integration.txt to be index.php.<br>
<br>
When I do that and try to log in, the page I get back appears to have a chunk of html missing at the start - see below.<br>
Should I be copying parts of the standard index.php script into the integration.txt version?<br>
<br>
Returned html:<br>
<br>
+++<br>
<br>
<br>
<script type="text/javascript"> // JAVASCRIPT library for fixed variables<br>
// management of javascript is set up here<br>
// SITE SETTINGS<br>
var site_url = "<a href="http://lamp1.lis.soas.ac.uk/xerte/" target="_blank">http://lamp1.lis.soas.ac.uk/xerte/</a>";<br>
var site_apache = "false";<br>
var properties_ajax_php_path = "website_code/php/properties/";<br>
var management_ajax_php_path = "website_code/php/management/";<br>
var ajax_php_path = "website_code/php/";<br>
<div class="folder" id="folder_workspace" ondblclick="folder_open_close(this)" onclick="highlight_main_toggle(this)"><p><img style="vertical-align:middle" src="<a href="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/folder_workspace.gif" target="_blank">http://lamp1.lis.soas.ac.uk/xerte//website_code/images/folder_workspace.gif</a>" />Workspace</p></div><div id="folderchild_workspace" class="workspace"><div id="file_5" class="file" preview_size="800,665" editor_size="800,665" style="padding-left:20px" onmousedown="single_click(this);file_folder_click_pause(event)" onmouseup="file_drag_stop(event,this)"><img src="<a href="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif" target="_blank">http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif</a>" style="vertical-align:middle" />BJProj</div><div id="file_6" class="file" preview_size="800,665" editor_size="800,665" style="padding-left:20px" onmousedown="single_click(this);file_folder_click_pause(event)" onmouseup="file_drag_stop(event,this)"><img src="<a href="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif" target="_blank">http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif</a>" style="vertical-align:middle" />BJProj</div></div><div class="folder" id="recyclebin" ondblclick="folder_open_close(this)" onclick="highlight_main_toggle(this)"><p><img id="folder_recyclebin" style="vertical-align:middle" src="<a href="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/rb_empty.gif" target="_blank">http://lamp1.lis.soas.ac.uk/xerte//website_code/images/rb_empty.gif</a>" />Recycle Bin</p></div><div id="folderchild_recyclebin" class="folder_content"></div><div class="template" onmouseover="this.style.backgroundColor='#ebedf3'" onmouseout="this.style.backgroundColor='#fff'"><div class="template_icon"></div><div class="template_desc"><p class="template_name">Bootstrap Template</p><p class="template_desc_p">A responsive template for delivering content to all devices.<br><button type="button" class="xerte_button" onclick="javascript:template_toggle('site')">Create</button></div><div id="site" class="rename"><span>Enter a name for this project</span><form action="javascript:create_tutorial('site')" method="post" enctype="text/plain"><input type="text" width="200" id="filename" name="filename" /><br /><button type="submit" class="xerte_button" >Create Project</button></form></div></div><div class="template" onmouseover="this.style.backgroundColor='#ebedf3'" onmouseout="this.style.backgroundColor='#fff'"><div class="template_icon"></div><div class="template_desc"><p class="template_name">Xerte Online Toolkit</p><p class="template_desc_p">A flexible template for creating interactive learning objects.<br><button type="button" class="xerte_button" onclick="javascript:template_toggle('Nottingham')">Create</button></div><div id="Nottingham" class="rename"><span>Enter a name for this project</span><form action="javascript:create_tutorial('Nottingham')" method="post" enctype="text/plain"><input type="text" width="200" id="filename" name="filename" /><br /><button type="submit" class="xerte_button" >Create Project</button></form></div></div><div class="template" onmouseover="this.style.backgroundColor='#ebedf3'" onmouseout="this.style.backgroundColor='#fff'"><div class="template_icon"></div><div class="template_desc"><p class="template_name">RSS Feed</p><p class="template_desc_p">Easily create and maintain an RSS Feed.<br><button type="button" class="xerte_button" onclick="javascript:template_toggle('Rss')">Create</button></div><div id="Rss" class="rename"><span>Enter a name for this project</span><form action="javascript:create_tutorial('Rss')" method="post" enctype="text/plain"><input type="text" width="200" id="filename" name="filename" /><br /><button type="submit" class="xerte_button" >Create Project</button></form></div></div><br>
</body><br>
</html><br>
<br>
<br>
+++<br>
<br>
Thanks in advance for any help.<br>
<br>
Cheers,<br>
<br>
Bruce<br>
<br>
</div></div>Glasgow Caledonian University is a registered Scottish charity, number SC021474<br>
<br>
Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.<br>
<a href="http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html" target="_blank">http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html</a><br>
<br>
Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.<br>
<a href="http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html" target="_blank">http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html</a><br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
</blockquote></div><br></div>