<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div><span>Anybody using Oracle Internet Directory, OID, for Koha-LDAP authentication?</span></div><div><span><br></span></div><div><span>Alen,in your case, w</span>hat is the ldap software?</div><div><br></div><div><br></div><div>Thanks an regards,</div><div>Oscar</div><div><br></div><div><br></div><div style="font-size: 10pt; font-family: verdana, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> alen vodopijevec &lt;alen@irb.hr&gt;<br><b><span style="font-weight: bold;">To:</span></b> koha@lists.katipo.co.nz<br><b><span style="font-weight: bold;">Cc:</span></b> dpavlin@rot13.org; Oscar Gaona &lt;ramses02@yahoo.com&gt;<br><b><span style="font-weight: bold;">Sent:</span></b>
 Wednesday, June 29, 2011 4:54 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Koha] Share Koha-LDAP conf<br></font><br>
I'm not sure why but I also had to format principal_name in koha-conf.xml<br>as follows:<br>--<br>&lt;principal_name&gt;uid=%s,dc=irb,dc=hr&lt;/principal_name&gt;<br>--<br><br>Otherwise it doesn't work with openldap at my institution :/<br><br>regards,<br>--<br>alen<br><br><br>&gt; 2011/6/22 Oscar Gaona &lt;<a ymailto="mailto:ramses02@yahoo.com" href="mailto:ramses02@yahoo.com">ramses02@yahoo.com</a>&gt;:<br>&gt;&gt; Hi all<br>&gt;&gt; There are many questions and solutions around Koha-LDAP connection /<br>&gt;&gt; authentication, so it seems there is not a only way to get it because<br>&gt;&gt; each<br>&gt;&gt; Library / Institution has its own requirements / developments.<br>&gt;&gt; If you has a successful / useful experience on this topic, may you share<br>&gt;&gt; how<br>&gt;&gt; you do it, please? Obviously, changing some real names / IP's<br>&gt;&gt; Sometimes, examples are the better way to support people looking for<br>&gt;&gt;
 solutions...<br>&gt;<br>&gt; For start, I would suggest to first try 3.2.10 or current git version<br>&gt; because<br>&gt; there are few LDAP fixes which just got merged into repository and<br>&gt; relesed.<br>&gt;<br>&gt; For a start, until bug 4994[1] gets merged, keep values inside<br>&gt; is="ldap-field" lower case only.<br>&gt;<br>&gt; We are using following configuration:<br>&gt;<br>&gt;&nbsp; &lt;useldapserver&gt;1&lt;/useldapserver&gt;&lt;!-- see C4::Auth_with_ldap for extra<br>&gt; configs you must add if you want to turn this on --&gt;<br>&gt;<br>&gt; &lt;ldapserver id="ldapserver" listenref="ldapserver"&gt;<br>&gt; &lt;!--<br>&gt;&nbsp; &lt;hostname&gt;ldaps://ldap.ffzg.hr&lt;/hostname&gt;<br>&gt; --&gt;<br>&gt;&nbsp; &lt;hostname&gt;ldap://localhost:1389&lt;/hostname&gt;<br>&gt;&nbsp; &lt;base&gt;dc=ffzg,dc=hr&lt;/base&gt;<br>&gt;<br>&gt;&nbsp; &lt;replicate&gt;1&lt;/replicate&gt;&nbsp; &lt;!-- add new users from LDAP to Koha
 database<br>&gt; --&gt;<br>&gt;&nbsp; &lt;update&gt;0&lt;/update&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- update existing users in Koha database --&gt;<br>&gt;<br>&gt;&nbsp; &lt;auth_by_bind&gt;1&lt;/auth_by_bind&gt;<br>&gt;&nbsp; &lt;principal_name&gt;%s&lt;/principal_name&gt; &lt;!-- optional, for auth_by_bind:<br>&gt; a printf format to make userPrincipalName from koha userid --&gt;<br>&gt;<br>&gt;&nbsp; &lt;mapping&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- match koha SQL field names to your LDAP<br>&gt; record field names --&gt;<br>&gt;&nbsp; &nbsp;  &lt;firstname&nbsp;  is="givenname"&nbsp; &nbsp;  &gt;&lt;/firstname&gt;<br>&gt;&nbsp; &nbsp;  &lt;surname&nbsp; &nbsp;  is="sn"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&lt;/surname&gt;<br>&gt;&nbsp; &nbsp;  &lt;address&nbsp; &nbsp;  is="ffzg-adresa_ulica" &gt;&lt;/address&gt;<br>&gt;&nbsp; &nbsp;  &lt;city&nbsp; &nbsp; &nbsp; &nbsp; is="ffzg-adresa_grad" &gt;&lt;/city&gt;<br>&gt;
 &lt;!--<br>&gt;&nbsp; &nbsp;  &lt;zipcode&nbsp; &nbsp;  is="ffzg-adresa_postanski_broj"&gt;&lt;/zipcode&gt;<br>&gt; ---&gt;<br>&gt;<br>&gt;&nbsp; &nbsp;  &lt;branchcode&nbsp; is="local-branch"&nbsp; &nbsp; &nbsp; &nbsp; &gt;FFZG&lt;/branchcode&gt;<br>&gt;&nbsp; &nbsp;  &lt;userid&nbsp; &nbsp; &nbsp; is="hrEduPersonUniqueID"&nbsp; &gt;&lt;/userid&gt;<br>&gt;&nbsp; &nbsp;  &lt;password&nbsp; &nbsp; is="userpassword"&nbsp; &gt;&lt;/password&gt;<br>&gt;&nbsp; &nbsp;  &lt;email&nbsp; &nbsp; &nbsp;  is="mail"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&lt;/email&gt;<br>&gt;&nbsp; &nbsp;  &lt;categorycode is="hrEduPersongroupmember"&nbsp; &gt;IMP&lt;/categorycode&gt;<br>&gt;<br>&gt;&nbsp; &nbsp;  &lt;dateofbirth is="hredupersondateofbirth" &gt;&lt;/dateofbirth&gt;<br>&gt;&nbsp; &nbsp;  &lt;sex is="ffzg-spol" &gt;&lt;/sex&gt;<br>&gt;&nbsp; &nbsp;  &lt;phone is="ffzg-tel_fixed"&gt;&lt;/phone&gt;<br>&gt;&nbsp; &nbsp;  &lt;mobile
 is="ffzg-tel_mobile"&gt;&lt;/mobile&gt;<br>&gt;<br>&gt;&nbsp; &nbsp;  &lt;dateexpiry is="hredupersonexpiredate"&gt;2012-12-23&lt;/dateexpiry&gt;<br>&gt;<br>&gt;&nbsp; &nbsp;  &lt;JMBG is="hrEduPersonUniqueNumber_JMBG"&gt;&lt;/JMBG&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;OIB is="hrEduPersonOIB"&gt;&lt;/OIB&gt;<br>&gt;<br>&gt;&nbsp; &lt;/mapping&gt;<br>&gt; &lt;/ldapserver&gt;<br>&gt;<br>&gt; This configuration works with changes in bug 4994, otherwise<br>&gt; everything inside is=""<br>&gt; would have to be lowercase only.<br>&gt;<br>&gt; We are using few of HrEdu* attributes which are specific to our national<br>&gt; LDAP<br>&gt; schema, and probably unusual combination of replication (to create users<br>&gt; who<br>&gt; logged in first time over web) without update (since we will edit patron's<br>&gt; data<br>&gt; locally, and then our data will be more current that LDAP data, so we<br>&gt; don't want<br>&gt; to overwrite it).<br>&gt;<br>&gt; Hope
 this helps.<br>&gt;<br>&gt; 1: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4994<br>&gt;<br>&gt; --<br>&gt; &nbsp;...2share!2flame... http://blog.rot13.org<br>&gt; _______________________________________________<br>&gt; Koha mailing list&nbsp; http://koha-community.org<br>&gt; <a ymailto="mailto:Koha@lists.katipo.co.nz" href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>&gt; http://lists.katipo.co.nz/mailman/listinfo/koha<br>&gt;<br>&gt;<br>&gt;<br>&gt; ----------------------------- UPOZORENJE -----------------------------<br>&gt;<br>&gt;&nbsp; &nbsp; Automatskom detekcijom utvrdjeno je da se u ovoj poruci<br>&gt;&nbsp; &nbsp; pojavljuje rijec "PASSWORD" ili "LOZINKA".<br>&gt;<br>&gt;&nbsp; &nbsp; AKO SE U PORUCI TRAZI DA POSALJETE SVOJU IRB LOZINKU<br>&gt;&nbsp; &nbsp; NEMOJTE TO NIKAKO UCINITI JER SE RADI O NAPADU S CILJEM<br>&gt;&nbsp; &nbsp; KRADJE ELEKTRONICKOG IDENTITETA.<br>&gt;<br>&gt;&nbsp; Centar za informatiku i
 racunarstvo,<br>&gt;&nbsp; Institut Rudjer Boskovic<br>&gt;<br>&gt; ----------------------------- UPOZORENJE -----------------------------<br>&gt;<br>&gt;<br>&gt;<br><br><br>-- <br><br><br><br><br></div></div></div></body></html>