Do you have a mapping defined for cardnumber?&nbsp; Is the corresponding LDAP field always populated and unique?&nbsp; If not, remove the mapping for it.<br><br>It sounds like you don&#39;t have an accurate &lt;mapping&gt; for your LDAP schema.<br>
<br>--Joe<br>&nbsp;<br><div class="gmail_quote">On Thu, Feb 19, 2009 at 12:13 PM, Barry Cannon <span dir="ltr">&lt;<a href="mailto:bc@interleaf.ie">bc@interleaf.ie</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-IE">

<div>

<p>Hi All,</p>



<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am still battling through getting Koha
talking to LDAP. I have managed to get so far but the latest problem is shown
below in the apache logs. The problem is the cardnumber field is being
completely ignored on the replication. Other LDAP attributes come across fine
but we can only manage one sync and the rest fail with the error below. This is
obviously because the cardnumber has to be unique and the next patron to import
is also '' so duplication occurs.&nbsp;</p>

<p>Also, when a user logs into OPAC all the Parton Details
attributes are blank.</p>



<p>[Thu Feb 19 12:55:15 2009] opac-user.pl: DBD::mysql::st
execute failed: Duplicate entry &#39; &#39; for key 2 at
/usr/share/koha/lib/C4/Members.pm line 769, &lt;DATA&gt; line 466.</p>

<p>AUTH_3: no results for userid=&#39;mmg&#39;, cardnumber=&#39;&#39;.</p>

<p>[Thu Feb 19 12:55:15 2009] opac-user.pl:
PARAM:LOOP:next_loop:hash pointer was expected but not found at
/usr/local/lib/perl/5.8.8/HTML/Template/Pro.pm line 191, &lt;DATA&gt; line 466.</p>

<p>[Thu Feb 19 12:59:19 2009] opac-user.pl: DBD::mysql::st
execute failed: Duplicate entry &#39; &#39; for key 2 at
/usr/share/koha/lib/C4/Members.pm line 769, &lt;DATA&gt; line 466.</p>

<p>AUTH_3: no results for userid=&#39;mmg&#39;, cardnumber=&#39;&#39;.</p>

<p>&nbsp;</p>

<p>Can anyone help?</p>

<p>&nbsp;</p>

<p><span style="color: rgb(31, 73, 125);" lang="EN-US">Regards</span><span style="font-size: 10pt; color: black;" lang="EN-US"></span></p>

<p><span style="color: rgb(31, 73, 125);" lang="EN-US">Barry Cannon <br>
<br>
</span><span lang="EN-US"></span></p>

<p>&nbsp;</p>

</div>

</div>


<br>_______________________________________________<br>
Koha mailing list<br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
<br></blockquote></div><br>