Auth.pm and Auth_with_ldap.pm are NOT interchangeable. This should be clear because Auth.pm makes use of Auth_with_ldap when necessary and Auth_with_ldap does not implement all the API of Auth. <br><br>So your problem right now is that the file switch has broken basic Koha functions. <br>
<br>The previous problem with LDAP is:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">LDAP Auth rejected : invalid password for user 'jimmy'. <br>
LDAP error #5: LDAP_COMPARE_FALSE, This code is returned when a compare<br>
request completes and the attribute value, given is not in the entry specified.<br></blockquote><br>So you either don't have passwords in your LDAP schema, or you haven't accurately mapped to them in the <ldapserver><mapping> portion of the $KOHA_CONF file. Probably the latter. :)<br>
<br>From perldoc C4::Auth_with_ldap:<br><br><span style="font-family: courier new,monospace;"> <mapping> <!-- match koha SQL field names to your LDAP record field names --></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <firstname is="givenname" ></firstname></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <surname is="sn" ></surname></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <address is="postaladdress" ></address></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <city is="l" >Athens, OH</city></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <zipcode is="postalcode" ></zipcode></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <branchcode is="branch" >MAIN</branchcode></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <userid is="uid" ></userid></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <password is="userpassword" ></password></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <email is="mail" ></email></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <categorycode is="employeetype" >PT</categorycode></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <phone is="telephonenumber"></phone></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </mapping></span><br style="font-family: courier new,monospace;">
<br>Find out what field your passwords are in and change that line in KOHA_CONF:<br><span style="font-family: courier new,monospace;"> <password is="wherever" ></password></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></span><br>--Joe<br><br><br><div class="gmail_quote">On Wed, Jan 7, 2009 at 4:28 AM, Chris Hendrickx <span dir="ltr"><<a href="mailto:chris.hendrickx@sanctamaria-aarschot.be">chris.hendrickx@sanctamaria-aarschot.be</a>></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;">Hello,<br>
<br>
It looks like not so many people are using Koha 3.0 with LDAP as I<br>
didn't get any replies on a previous request.<br>
<br>
In a first instance, Koha was asking the LDAP server for information<br>
and LDAP returned that the user was not found: (user = jimmy)<br>
<br>
<br>
******************************<br>
* from koha-opac-error_log: *<br>
******************************<br>
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan 7<br>
09:23:54 2009] opac-user.pl: LDAP Auth rejected : invalid password for<br>
user 'jimmy'. LDAP error #5: LDAP_COMPARE_FALSE, referer:<br>
<a href="http://192.168.0.8/cgi-bin/koha/opac-user.pl" target="_blank">http://192.168.0.8/cgi-bin/koha/opac-user.pl</a><br>
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan 7<br>
09:23:54 2009] opac-user.pl: # This code is returned when a compare<br>
request completes and the attribute value, referer:<br>
<a href="http://192.168.0.8/cgi-bin/koha/opac-user.pl" target="_blank">http://192.168.0.8/cgi-bin/koha/opac-user.pl</a><br>
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan 7<br>
09:23:54 2009] opac-user.pl: given is not in the entry specified,<br>
referer: <a href="http://192.168.0.8/cgi-bin/koha/opac-user.pl" target="_blank">http://192.168.0.8/cgi-bin/koha/opac-user.pl</a><br>
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan 7<br>
09:23:54 2009] opac-user.pl: , referer:<br>
<a href="http://192.168.0.8/cgi-bin/koha/opac-user.pl" target="_blank">http://192.168.0.8/cgi-bin/koha/opac-user.pl</a><br>
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan 7<br>
09:23:54 2009] opac-user.pl: HTML::Template::Pro:template<br>
doc-head-open.inc not found! at /usr/share/koha/lib/C4/Auth.pm line<br>
833, referer: <a href="http://192.168.0.8/cgi-bin/koha/opac-user.pl" target="_blank">http://192.168.0.8/cgi-bin/koha/opac-user.pl</a><br>
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan 7<br>
09:23:54 2009] opac-user.pl: HTML::Template::Pro:template<br>
doc-head-close.inc not found! at /usr/share/koha/lib/C4/Auth.pm line<br>
833, referer: <a href="http://192.168.0.8/cgi-bin/koha/opac-user.pl" target="_blank">http://192.168.0.8/cgi-bin/koha/opac-user.pl</a><br>
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] EXPR:at pos<br>
29: non-initialized variable virtualshelves, referer:<br>
<a href="http://192.168.0.8/cgi-bin/koha/opac-user.pl" target="_blank">http://192.168.0.8/cgi-bin/koha/opac-user.pl</a><br>
*************************************************<br>
<br>
I tried changing Auth.pm with Auth_with_ldap.pm and now got this in the logs:<br>
<br>
<br>
<br>
******************************<br>
* from koha-opac-error_log: *<br>
******************************<br>
[Wed Jan 07 09:28:22 2009] [error] [client 192.168.0.66] [Wed Jan 7<br>
09:28:22 2009] opac-user.pl: Undefined subroutine<br>
&main::get_template_and_user called at<br>
/usr/share/koha/opac/cgi-bin/opac/opac-user.pl line 37, <DATA> line<br>
275., referer: <a href="http://192.168.0.8/cgi-bin/koha/opac-user.pl" target="_blank">http://192.168.0.8/cgi-bin/koha/opac-user.pl</a><br>
[Wed Jan 07 10:09:44 2009] [error] [client 192.168.0.66] [Wed Jan 7<br>
10:09:44 2009] opac-user.pl: Undefined subroutine<br>
&main::get_template_and_user called at<br>
/usr/share/koha/opac/cgi-bin/opac/opac-user.pl line 37, <DATA> line<br>
275., referer: <a href="http://192.168.0.8/cgi-bin/koha/opac-user.pl" target="_blank">http://192.168.0.8/cgi-bin/koha/opac-user.pl</a><br>
***************************************************<br>
<br>
And instead of being returned to the login box on the local koha-site<br>
this information is displayed:<br>
*************************************************<br>
Koha error<br>
<br>
The following fatal error has occurred:<br>
<br>
Undefined subroutine &main::get_template_and_user called at<br>
/usr/share/koha/opac/cgi-bin/opac/opac-user.pl line 37, <DATA> line 275.<br>
<br>
Apache Server version: Apache/2.2.8 (Ubuntu) Server built: Jun 25 2008<br>
13:54:13<br>
Koha 3.00.00.107<br>
Koha DB 3.0000107<br>
MySQL mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486)<br>
using readline 5.2<br>
OS Linux Octopus 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008<br>
i686 GNU/Linux<br>
Perl 5.008008<br>
*************************************************<br>
<br>
More info: this is Koha 3.0 on Ubuntu 8.04LTS server<br>
<br>
I found lots of info and patches about "get_template_and_user" but I<br>
do not know how to implement or use these patches nor do I know where<br>
to find the right one for my problem (patching opac-user.pl)<br>
<br>
I'll be thankful for any help or hint that helps me on the way of<br>
making this work!<br>
<br>
<br>
Chris Hendrickx,<br>
<br>
ICT Coördinator<br>
<br>
*****************************************************<br>
** Instituut Sancta Maria Aarschot **<br>
** Kardinaal Mercierstraat 10 **<br>
** B-3200 Aarschot (B) **<br>
** tel: +32(0)16 56 61 04 **<br>
** fax: +32(0)16 56 29 52 **<br>
** Website: <a href="http://www.sanctamaria-aarschot.be" target="_blank">www.sanctamaria-aarschot.be</a> **<br>
** e-mail: <a href="mailto:chris.hendrickx@sanctamaria-aarschot.be">chris.hendrickx@sanctamaria-aarschot.be</a> **<br>
*****************************************************<br>
<br>
<br>
<br>
<br>
<br>
----------------------------------------------------------------<br>
This message was sent using IMP, the Internet Messaging Program.<br>
<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>
</blockquote></div><br>