<div dir="ltr">Dear All,<br><br>It seems this issue was related to the &lt;principle_name&gt; tag.<br><br>I had to put &lt;principle_name&gt;%<a href="mailto:s@meek.ca">s@meek.ca</a>&lt;/principle_name&gt; for it to work.<br>

<br>Hope this helps someone else,<br><br>Regards,<br><br><br><div class="gmail_quote">On Tue, Aug 10, 2010 at 8:41 AM, Susan Mustafa <span dir="ltr">&lt;<a href="mailto:susan.mustafa@gmail.com">susan.mustafa@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr">Dear Members,<br><br><br>I need to do LDAP Authentication with the latest Koha version, but it does not work.  [[[[Invalid Username or Password ]]]]<br>

<br><b>Below is a subsection of the koha-conf.xml file:</b><br>
<br>&lt;!-- ADDITIONAL KOHA CONFIGURATION DIRECTIVE --&gt;<br>&lt;!-- db_scheme should follow the DBD driver name --&gt;<br>&lt;!-- port info: mysql:3306 Pg:5432 (5433 on Debian) --&gt;<br>&lt;config&gt;<br> &lt;db_scheme&gt;mysql&lt;/db_scheme&gt;<br>


 &lt;database&gt;koha&lt;/database&gt;<br> &lt;database&gt;koha&lt;/database&gt;<br> &lt;hostname&gt;localhost&lt;/hostname&gt;<br> &lt;port&gt;3306&lt;/port&gt;<br> &lt;user&gt;koha&lt;/user&gt;<br> &lt;pass&gt;koha&lt;/pass&gt;<br>


 &lt;biblioserver&gt;biblios&lt;/biblioserver&gt;<br> &lt;biblioservershadow&gt;1&lt;/biblioservershadow&gt;<br> &lt;authorityserver&gt;authorities&lt;/authorityserver&gt;<br> &lt;authorityservershadow&gt;1&lt;/authorityservershadow&gt;<br>


 &lt;intranetdir&gt;/var/www/koha-2010-08-04&lt;/intranetdir&gt;<br> &lt;opacdir&gt;/var/www/koha-2010-08-04/opac&lt;/opacdir&gt;<br> &lt;opachtdocs&gt;/var/www/koha-2010-08-04/koha-tmpl/opac-tmpl&lt;/opachtdocs&gt;<br> &lt;intrahtdocs&gt;/var/www/koha-2010-08-04/koha-tmpl/intranet-tmpl&lt;/intrahtdocs&gt;<br>


 &lt;includes&gt;/var/www/koha-2010-08-04/koha-tmpl/intranet-tmpl/prog/en/includes/&lt;/includes&gt;<br> &lt;logdir&gt;/home/mistuser/koha-dev/var/log&lt;/logdir&gt;<br> &lt;pazpar2url&gt;<a href="http://localhost:11002/search.pz2" target="_blank">http://localhost:11002/search.pz2</a>&lt;/pazpar2url&gt;<br>


 &lt;install_log&gt;/home/mistuser/koha-dev/misc/koha-install-log&lt;/install_log&gt;<br> &lt;useldapserver&gt;0&lt;/useldapserver&gt;&lt;!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on --&gt;<br>


 &lt;memcached_servers&gt;&lt;/memcached_servers&gt;<br> &lt;memcached_namespace&gt;&lt;/memcached_namespace&gt;<br><br>&lt;!-- LDAP SERVER (optional) --&gt;<br>&lt;useldapserver&gt;1&lt;/useldapserver&gt;<br>&lt;ldapserver id=&quot;ldapserver&quot;  listenref=&quot;ldapserver&quot;&gt;<br>


 &lt;hostname&gt;<a href="http://10.111.20.20:389" target="_blank">10.111.20.20:389</a>&lt;/hostname&gt;<br> &lt;base&gt;ou=MEEK,dc=meek,dc=ca&lt;/base&gt;<br> &lt;user&gt;CN=KOHA SSO,OU=Staff,OU=Users,OU=MEEK,DC=meek,DC=ca &lt;/user&gt;<br>


 &lt;pass&gt;P@ssword123&lt;/pass&gt;&lt;!-- password, if not anonymous --&gt;<br> &lt;replicate&gt;1&lt;/replicate&gt;       &lt;!-- add new users from LDAP to Koha database --&gt;<br> &lt;update&gt;0&lt;/update&gt;             &lt;!-- update existing users in Koha database --&gt;<br>


 &lt;auth_by_bind&gt;1&lt;/auth_by_bind&gt; &lt;!-- set to 1 to authenticate by binding instead of password comparison, e.g., to use Active Directory --&gt;<br> &lt;principal_name&gt;%<a href="mailto:s@meek.ac.ca" target="_blank">s@meek.ac.ca</a>&lt;/principal_name&gt;<br>


 &lt;mapping&gt;             &lt;!-- match koha SQL field names to your LDAP record field names --&gt;<br>                &lt;firstname    is=&quot;givenname&quot;      &gt;&lt;/firstname&gt;<br>                &lt;surname      is=&quot;sn&quot;             &gt;&lt;/surname&gt;<br>


                &lt;address      is=&quot;postaladdress&quot;  &gt;&lt;/address&gt;<br>                &lt;city         is=&quot;l&quot;              &gt;Calgary, Canada&lt;/city&gt;<br>                &lt;zipcode      is=&quot;postalcode&quot;     &gt;&lt;/zipcode&gt;<br>


                &lt;branchcode   is=&quot;&quot;&gt;meek&lt;/branchcode&gt;<br>                &lt;userid       is=&quot;samAccountName&quot;            &gt;&lt;/userid&gt;<br>                &lt;password     is=&quot;&quot;   &gt;&lt;/password&gt;<br>


                &lt;email        is=&quot;mail&quot;           &gt;&lt;/email&gt;<br>                &lt;categorycode is=&quot;&quot;&gt;&lt;/categorycode&gt;<br>                &lt;phone        is=&quot;telephonenumber&quot;&gt;&lt;/phone&gt;<br>


                &lt;dateexpiry   is=&quot;&quot;&gt;&lt;/dateexpiry&gt;<br><br> &lt;/mapping&gt;<br>&lt;/ldapserver&gt;<br><br>&lt;/config&gt;<br>&lt;/yazgfs&gt;<br><br><br>Please note that I copied this portion of the LDAP XML from my 3.0 Version[Production] which had LDAP Working and then I added the extra &lt;Principle_name&gt; thing to the xml.<br>


<br><br>What else do I have to do after changing this koha-conf.xml file? Kindly note, that this info of authentication works, because it worked on the 3.0 before but not on the HEAD/Git.  Its copy paste + &lt;principle_name&gt; tag.<br>


<br>I checked the error logs, both produce nothing, which is very very odd.<br><br>The only error I get happens on screen and it is [[[Invalid Username and Password]]]]<br><br>Kindly awaiting a reply.  This is really important.<br>


<br>Best Regards,<br><br><br><br><br><br><br></div>
</blockquote></div><br></div>