<div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br></div>We're trying to get Shibboleth working as a method of authentication here.<br><br></div>From a thread on this forum back in November 2010 (<a href="http://lists.nottingham.ac.uk/pipermail/xerte/2010-November/007360.html">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></div>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></div>Should I be copying parts of the standard index.php script into the integration.txt version?<br>
<br></div><div>Returned html:<br><br>+++<br><pre id="line1"><span>
<span id="line2"></span></span><span title="Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”." class=""><<span class="">script</span> <span class="">type</span>="<a class="">text/javascript</a>"></span><span> // JAVASCRIPT library for fixed variables
<span id="line3"></span> // management of javascript is set up here
<span id="line4"></span> // SITE SETTINGS
<span id="line5"></span>var site_url = "<a href="http://lamp1.lis.soas.ac.uk/xerte/">http://lamp1.lis.soas.ac.uk/xerte/</a>";
<span id="line6"></span>var site_apache = "false";
<span id="line7"></span>var properties_ajax_php_path = "website_code/php/properties/";
<span id="line8"></span> var management_ajax_php_path = "website_code/php/management/";
<span id="line9"></span> var ajax_php_path = "website_code/php/";
<span id="line10"></span></span><span><d</span><span>iv class="folder" id="folder_workspace" ondblclick="folder_open_close(this)" onclick="highlight_main_toggle(this)"></span><span><p</span><span>></span><span><i</span><span>mg style="vertical-align:middle" src="<a href="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/folder_workspace.gif">http://lamp1.lis.soas.ac.uk/xerte//website_code/images/folder_workspace.gif</a>" />Workspace</span><span></<span></span>p</span><span>></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv id="folderchild_workspace" class="workspace"></span><span><d</span><span>iv 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)"></span><span><i</span><span>mg src="<a href="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif">http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif</a>" style="vertical-align:middle" />BJProj</span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv 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)"></span><span><i</span><span>mg src="<a href="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif">http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif</a>" style="vertical-align:middle" />BJProj</span><span></<span></span>d</span><span>iv></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv class="folder" id="recyclebin" ondblclick="folder_open_close(this)" onclick="highlight_main_toggle(this)"></span><span><p</span><span>></span><span><i</span><span>mg id="folder_recyclebin" style="vertical-align:middle" src="<a href="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/rb_empty.gif">http://lamp1.lis.soas.ac.uk/xerte//website_code/images/rb_empty.gif</a>" />Recycle Bin</span><span></<span></span>p</span><span>></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv id="folderchild_recyclebin" class="folder_content"></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv class="template" onmouseover="this.style.backgroundColor='#ebedf3'" onmouseout="this.style.backgroundColor='#fff'"></span><span><d</span><span>iv class="template_icon"></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv class="template_desc"></span><span><p</span><span> class="template_name">Bootstrap Template</span><span></<span></span>p</span><span>></span><span><p</span><span> class="template_desc_p">A responsive template for delivering content to all devices.</span><span><b</span><span>r></span><span><b</span><span>utton type="button" class="xerte_button" onclick="javascript:template_toggle('site')">Create</span><span></<span></span>b</span><span>utton></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv id="site" class="rename"></span><span><s</span><span>pan>Enter a name for this project</span><span></<span>s</span>p</span><span>an></span><span><f</span><span>orm action="javascript:create_tutorial('site')" method="post" enctype="text/plain"></span><span><i</span><span>nput type="text" width="200" id="filename" name="filename" /></span><span><b</span><span>r /></span><span><b</span><span>utton type="submit" class="xerte_button" >Create Project</span><span></<span></span>b</span><span>utton></span><span></<span></span>f</span><span>orm></span><span></<span></span>d</span><span>iv></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv class="template" onmouseover="this.style.backgroundColor='#ebedf3'" onmouseout="this.style.backgroundColor='#fff'"></span><span><d</span><span>iv class="template_icon"></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv class="template_desc"></span><span><p</span><span> class="template_name">Xerte Online Toolkit</span><span></<span></span>p</span><span>></span><span><p</span><span> class="template_desc_p">A flexible template for creating interactive learning objects.</span><span><b</span><span>r></span><span><b</span><span>utton type="button" class="xerte_button" onclick="javascript:template_toggle('Nottingham')">Create</span><span></<span></span>b</span><span>utton></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv id="Nottingham" class="rename"></span><span><s</span><span>pan>Enter a name for this project</span><span></<span>s</span>p</span><span>an></span><span><f</span><span>orm action="javascript:create_tutorial('Nottingham')" method="post" enctype="text/plain"></span><span><i</span><span>nput type="text" width="200" id="filename" name="filename" /></span><span><b</span><span>r /></span><span><b</span><span>utton type="submit" class="xerte_button" >Create Project</span><span></<span></span>b</span><span>utton></span><span></<span></span>f</span><span>orm></span><span></<span></span>d</span><span>iv></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv class="template" onmouseover="this.style.backgroundColor='#ebedf3'" onmouseout="this.style.backgroundColor='#fff'"></span><span><d</span><span>iv class="template_icon"></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv class="template_desc"></span><span><p</span><span> class="template_name">RSS Feed</span><span></<span></span>p</span><span>></span><span><p</span><span> class="template_desc_p">Easily create and maintain an RSS Feed.</span><span><b</span><span>r></span><span><b</span><span>utton type="button" class="xerte_button" onclick="javascript:template_toggle('Rss')">Create</span><span></<span></span>b</span><span>utton></span><span></<span></span>d</span><span>iv></span><span><d</span><span>iv id="Rss" class="rename"></span><span><s</span><span>pan>Enter a name for this project</span><span></<span>s</span>p</span><span>an></span><span><f</span><span>orm action="javascript:create_tutorial('Rss')" method="post" enctype="text/plain"></span><span><i</span><span>nput type="text" width="200" id="filename" name="filename" /></span><span><b</span><span>r /></span><span><b</span><span>utton type="submit" class="xerte_button" >Create Project</span><span></<span></span>b</span><span>utton></span><span></<span></span>f</span><span>orm></span><span></<span></span>d</span><span>iv></span><span></<span></span>d</span><span>iv>
<span id="line11"></span></span><span></<span></span>b</span><span>ody>
<span id="line12"></span></span><span></<span></span>h</span><span>tml>
<span id="line13"></span></span></pre>+++<br><br></div>Thanks in advance for any help.<br><br></div>Cheers,<br><br></div>Bruce<br><br><div><div><div><div><div></div></div></div></div></div></div>