<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=utf-8">
<meta name=Generator content="Microsoft Word 12 (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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
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;}
@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'>Website_code/login_top – set the max length value in the form to be
higher </span><span style='font-size:10.0pt;font-family:Wingdings;color:blue'>J</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:blue'><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'>What do people think is a good max length – 30 would seem to cover
it?<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'>I could make it an option – but it’s an odd option.<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'>I’ll make those two fixed strings as option variables then, does
anyone know enough LDAP to suggest a good default value for the installer?<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>

<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>Peter
Huppertz<br>
<b>Sent:</b> 10 March 2009 12:06<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] Using toolkits with LDAP<o:p></o:p></span></p>

</div>

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

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks
for the info. Indeed the hardcoded filter </span><span style='font-family:"Verdana","sans-serif";
color:blue'>'sAMAccountName' was the problem. In my case the filter attribute
is 'cn'. I think it depends on the ldap template you use. So I guess it would
make sense to add the filter attribute to the variable settings in the setup.
Even more because some people perhaps would like to use the email-address or
another attribute for authentication.</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>Also the input
field for the username does not allow more than 12 letters. In my case this is
too short.</span> <br>
<br>
<span style='font-family:"Verdana","sans-serif";color:blue'>Peter</span> <br>
<br>
<o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%;margin-left:36.0pt'>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>From:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>Patrick
  Lockley &lt;Patrick.Lockley@nottingham.ac.uk&gt;</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>To:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>&quot;Xerte
  discussion list&quot; &lt;xerte@lists.nottingham.ac.uk&gt;</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>Date:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>10.03.2009
  11:25</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>Subject:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>RE:
  [Xerte] Using toolkits with LDAP</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>Sent by:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>xerte-bounces@lists.nottingham.ac.uk</span><o:p></o:p></p>
  </td>
 </tr>
</table>

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

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'>

<hr size=2 width="100%" noshade style='color:#9D9DA1' align=center>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><br>
<br>
<br>
<span style='font-family:"Verdana","sans-serif";color:blue'>I’m not an LDAP
expert, so I’ve just used some standard code.</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>&nbsp;</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>Xerte does know
what to look for, but it’s possible that the structure that’s worked previously
is different from yours.</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>&nbsp;</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>If there are any
settings that are different, you’ll find them in the valid_login function in
website_code/php/login_library.php.</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>&nbsp;</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>The only fixed
strings are </span><br>
<span style='font-family:"Verdana","sans-serif";color:blue'>&nbsp;</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>$ldap_filter_attr =
'sAMAccountName';</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>$ldap_search_attr =
array('firstname' =&gt; 'givenname', 'lastname' =&gt; 'sn');</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>&nbsp;</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>&nbsp;</span> <br>
<b><span style='font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[</span><a href="mailto:xerte-bounces@lists.nottingham.ac.uk"><span
style='font-family:"Tahoma","sans-serif"'>mailto:xerte-bounces@lists.nottingham.ac.uk</span></a><span
style='font-family:"Tahoma","sans-serif"'>] <b>On Behalf Of </b>Julian Tenney<b><br>
Sent:</b> 10 March 2009 09:34<b><br>
To:</b> Xerte discussion list<b><br>
Subject:</b> RE: [Xerte] Using toolkits with LDAP</span> <br>
&nbsp; <br>
<span style='font-family:"Calibri","sans-serif";color:#004080'>I’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’d like to give a people a chance to discover any issues there might be
in rolling this out to disparate systems,</span> <br>
<span style='font-family:"Calibri","sans-serif";color:#004080'>&nbsp;</span> <br>
<span style='font-family:"Calibri","sans-serif";color:#004080'>I’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,</span> <br>
<span style='font-family:"Calibri","sans-serif";color:#004080'>&nbsp;</span> <br>
<span style='font-family:"Calibri","sans-serif";color:#004080'>Many thanks,</span>
<br>
<span style='font-family:"Calibri","sans-serif";color:#004080'>&nbsp;</span> <br>
<span style='font-family:"Calibri","sans-serif";color:#004080'>J</span> <br>
<span style='font-family:"Calibri","sans-serif";color:#004080'>&nbsp;</span> <br>
<b><span style='font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[</span><a href="mailto:xerte-bounces@lists.nottingham.ac.uk"><span
style='font-family:"Tahoma","sans-serif"'>mailto:xerte-bounces@lists.nottingham.ac.uk</span></a><span
style='font-family:"Tahoma","sans-serif"'>] <b>On Behalf Of </b>Peter Huppertz<b><br>
Sent:</b> Tuesday, March 10, 2009 8:13 AM<b><br>
To:</b> xerte@lists.nottingham.ac.uk<b><br>
Subject:</b> [Xerte] Using toolkits with LDAP</span> <br>
&nbsp; <br>
<span style='font-family:"Arial","sans-serif"'>Dear List,</span> <br>
<span style='font-family:"Arial","sans-serif"'><br>
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>
<span style='font-family:"Arial","sans-serif"'><br>
dc=example,dc=com</span> <span style='font-family:"Arial","sans-serif"'><br>
&nbsp; ou=people</span> <span style='font-family:"Arial","sans-serif"'><br>
&nbsp; &nbsp; &nbsp; cn=user1</span> <br>
<span style='font-family:"Arial","sans-serif"'><br>
In Xerte I use the following settings:</span> <br>
<span style='font-family:"Arial","sans-serif"'><br>
$site-&gt;ldap_host = &quot;ldap://localhost&quot;;</span> <span
style='font-family:"Arial","sans-serif"'><br>
$site-&gt;ldap_port = 389;</span> <br>
<span style='font-family:"Arial","sans-serif"'><br>
$site-&gt;bind_pwd=&quot;supersecret&quot;;</span> <span style='font-family:
"Arial","sans-serif"'><br>
$site-&gt;basedn=&quot;dc=example,dc=com&quot;;</span> <span style='font-family:
"Arial","sans-serif"'><br>
$site-&gt;bind_dn = 'cn=Manager,dc=example,dc=com';</span> <br>
<span style='font-family:"Arial","sans-serif"'><br>
When I try to login with &quot;user1&quot; Xerte it tells me: &quot;Sorry that
password combination was not correct&quot;. <br>
I think Xerte doesn't know which attribute to look for the username?!</span> <br>
<span style='font-family:"Arial","sans-serif"'><br>
Peter</span><tt><span style='font-size:10.0pt'>_______________________________________________</span></tt><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt>Xerte mailing list</tt><br>
<tt>Xerte@lists.nottingham.ac.uk</tt><br>
</span><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte"><tt><span
style='font-size:10.0pt'>http://lists.nottingham.ac.uk/mailman/listinfo/xerte</span></tt></a><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<br>
</span><o:p></o:p></p>

</div>

</body>

</html>