[Koha] Koha + LDAP

Chris Hendrickx chris.hendrickx at sanctamaria-aarschot.be
Wed Jan 7 22:28:31 NZDT 2009


Hello,

It looks like not so many people are using Koha 3.0 with LDAP as I  
didn't get any replies on a previous request.

In a first instance, Koha was asking the LDAP server for information  
and LDAP returned that the user was not found: (user = jimmy)


******************************
* from  koha-opac-error_log: *
******************************
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan  7  
09:23:54 2009] opac-user.pl: LDAP Auth rejected : invalid password for  
user 'jimmy'. LDAP error #5: LDAP_COMPARE_FALSE, referer:  
http://192.168.0.8/cgi-bin/koha/opac-user.pl
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan  7  
09:23:54 2009] opac-user.pl: # This code is returned when a compare  
request completes and the attribute value, referer:  
http://192.168.0.8/cgi-bin/koha/opac-user.pl
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan  7  
09:23:54 2009] opac-user.pl: given is not in the entry specified,  
referer: http://192.168.0.8/cgi-bin/koha/opac-user.pl
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan  7  
09:23:54 2009] opac-user.pl: , referer:  
http://192.168.0.8/cgi-bin/koha/opac-user.pl
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan  7  
09:23:54 2009] opac-user.pl: HTML::Template::Pro:template  
doc-head-open.inc not found! at /usr/share/koha/lib/C4/Auth.pm line  
833, referer: http://192.168.0.8/cgi-bin/koha/opac-user.pl
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] [Wed Jan  7  
09:23:54 2009] opac-user.pl: HTML::Template::Pro:template  
doc-head-close.inc not found! at /usr/share/koha/lib/C4/Auth.pm line  
833, referer: http://192.168.0.8/cgi-bin/koha/opac-user.pl
[Wed Jan 07 09:23:54 2009] [error] [client 192.168.0.66] EXPR:at pos  
29: non-initialized variable virtualshelves, referer:  
http://192.168.0.8/cgi-bin/koha/opac-user.pl
*************************************************

I tried changing Auth.pm with Auth_with_ldap.pm and now got this in the logs:



******************************
* from  koha-opac-error_log: *
******************************
[Wed Jan 07 09:28:22 2009] [error] [client 192.168.0.66] [Wed Jan  7  
09:28:22 2009] opac-user.pl: Undefined subroutine  
&main::get_template_and_user called at  
/usr/share/koha/opac/cgi-bin/opac/opac-user.pl line 37, <DATA> line  
275., referer: http://192.168.0.8/cgi-bin/koha/opac-user.pl
[Wed Jan 07 10:09:44 2009] [error] [client 192.168.0.66] [Wed Jan  7  
10:09:44 2009] opac-user.pl: Undefined subroutine  
&main::get_template_and_user called at  
/usr/share/koha/opac/cgi-bin/opac/opac-user.pl line 37, <DATA> line  
275., referer: http://192.168.0.8/cgi-bin/koha/opac-user.pl
***************************************************

And instead of being returned to the login box on the local koha-site  
this information is displayed:
*************************************************
Koha error

The following fatal error has occurred:

Undefined subroutine &main::get_template_and_user called at  
/usr/share/koha/opac/cgi-bin/opac/opac-user.pl line 37, <DATA> line 275.

Apache	Server version: Apache/2.2.8 (Ubuntu) Server built: Jun 25 2008  
13:54:13
Koha	3.00.00.107
Koha DB	3.0000107
MySQL	mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486)  
using readline 5.2
OS	Linux Octopus 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008  
i686 GNU/Linux
Perl	5.008008
*************************************************

More info: this is Koha 3.0 on Ubuntu 8.04LTS server

I found lots of info and patches about "get_template_and_user"  but I  
do not know how to implement or use these patches nor do I know where  
to find the right one for my problem (patching opac-user.pl)

I'll be thankful for any help or hint that helps me on the way of  
making this work!


Chris Hendrickx,

ICT Coördinator

*****************************************************
**          Instituut Sancta Maria Aarschot        **
**             Kardinaal Mercierstraat 10          **
**                B-3200 Aarschot (B)              **
**              tel: +32(0)16 56 61 04             **
**              fax: +32(0)16 56 29 52             **
**       Website: www.sanctamaria-aarschot.be      **
** e-mail: chris.hendrickx at sanctamaria-aarschot.be **
*****************************************************





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the Koha mailing list