[Koha] LDAP authentication problem with Koha 2.2.9

Guillaume Hatt guillaume.hatt at enc.sorbonne.fr
Thu Oct 4 00:44:57 NZST 2007


Hi everyone,
I have Koha working (2.2.9), and I try to connect the readers who are stored in our LDAP.
The connection to LDAP server is OK, Koha can find the reader login, but authentication fails.

In my log, I can see :
LDAP Auth impossible : wrong password at /usr/local/koha/intranet/modules/C4/Auth.pm line 533, <DATA> line 430.

I use Auth_LDAP.pm renamed as Auth.pm, and I think the problem is there (line 527) :
my $userldapentry=$userdnsearch -> shift_entry;
my $cmpmesg = $db -> compare ( $userldapentry, attr => 'userPassword', value => $password );                 
## HACK LMK
           ## ligne originale
           #if( $cmpmesg -> code != 6 ) {
           if( ( $cmpmesg -> code != 6 ) &&  ! ( $password eq "kivabien" ) ) {
             warn "LDAP Auth impossible : wrong password";
             return 0;
	};

In our LDAP, the password is in the field userPassword but is crypted. 
I think I must replace "kivabien" with something, but I don't know what...

Has anybody an idea ? Is there an exemple on other site with Koha ?

Thanks.
G. Hatt
 

-- 
========================================================
Guillaume HATT
Bibliothécaire
Informatique documentaire
Ecole nationale des chartes
19 rue de la Sorbonne
75005 Paris
Courriel : guillaume.hatt at enc.sorbonne.fr
Tél. : 01 55 42 75 05
======================================================== 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: guillaume.hatt.vcf
Type: text/x-vcard
Size: 380 bytes
Desc: not available
Url : http://lists.katipo.co.nz/pipermail/koha/attachments/20071003/4bdb448a/guillaume.hatt.vcf


More information about the Koha mailing list