<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 12 (filtered medium)">
<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;}
@font-face
        {font-family:Verdana;
        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:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'>I&#8217;m not an LDAP expert, so I&#8217;ve just used some standard
code.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'>Xerte does know what to look for, but it&#8217;s possible that the
structure that&#8217;s worked previously is different from yours.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'>If there are any settings that are different, you&#8217;ll find
them in the valid_login function in website_code/php/login_library.php.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'>The only fixed strings are <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'>$ldap_filter_attr = 'sAMAccountName';<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'>$ldap_search_attr = array('firstname' =&gt; 'givenname', 'lastname'
=&gt; 'sn');<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:36.0pt'><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"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> 10 March 2009 09:34<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Using toolkits with LDAP<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>I&#8217;ll let Pat chime in
here, but it would definitely be worthwhile trying this with the pre-release
version of toolkits we now have ready for final testing out in the community.
We can send you the files, or make a link available. If others have access to a
server and would like to try the pre-release version please let us know.
We&#8217;d like to give a people a chance to discover any issues there might be
in rolling this out to disparate systems,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>I&#8217;ll ask Pat to zip it
all up and put some installation instructions together. We would like to have
version 1.0 completed by the end of this week, so any final feedback would be
brilliant,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>Many thanks,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>J<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:72.0pt'><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"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Peter
Huppertz<br>
<b>Sent:</b> Tuesday, March 10, 2009 8:13 AM<br>
<b>To:</b> xerte@lists.nottingham.ac.uk<br>
<b>Subject:</b> [Xerte] Using toolkits with LDAP<o:p></o:p></span></p>

</div>

<p class=MsoNormal style='margin-left:72.0pt'><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Dear List,</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I installed
toolkits 0.9 from the website in my local XAMPP. I also have a working locale
installation of OpenLDAP (Mac OS X). The structure is as follows:</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>dc=example,dc=com</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;
&nbsp;ou=people</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp; &nbsp;
&nbsp; &nbsp;cn=user1</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>In Xerte I use
the following settings:</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>$site-&gt;ldap_host
= &quot;ldap://localhost&quot;;</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>$site-&gt;ldap_port
= 389;</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>$site-&gt;bind_pwd=&quot;supersecret&quot;;</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>$site-&gt;basedn=&quot;dc=example,dc=com&quot;;</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>$site-&gt;bind_dn
= 'cn=Manager,dc=example,dc=com';</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>When I try to
login with &quot;user1&quot; Xerte it tells me: &quot;Sorry that password
combination was not correct&quot;. </span><br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I think Xerte
doesn't know which attribute to look for the username?!</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Peter</span><o:p></o:p></p>

</div>

</body>

</html>