Hi,
Go to the file
Auth_with_ldap.pm located in: /usr/share/koha/lib/C4 and change the following lines of code:
my $userldapentry = $search->shift_entry;
my $cmpmesg = $db->compare( $userldapentry, attr=>'userpassword',
value => $password );
if ($cmpmesg->code != 6) {
warn "LDAP Auth rejected : invalid password for
user '$userid'. " . description($cmpmesg);
return 0;
}
To this:
my $userldapentry = $search->shift_entry;
my $dbuser = Net::LDAP->new( [$prefhost] );
$res = $dbuser->bind( $userldapentry, password => $password
);
unless ( $db && ! $res->code ) {
warn "LDAP Auth rejected : invalid password for
user '$userid'";
return 0;
}
Also, you need to configure the koha_conf.xml file which is in /etc/
Steps to configure are available in:
http://wiki.koha.org/doku.php?id=en:development:ldap
I worked for us on ADS LDAP Server.
Thanks and Regards,
Sai Bhalaji

__________________________________________________________________________________________________________________________________
D&B TransUnion Analytic and Decision Services Pvt. Ltd. | Prince Infocity, 9th Floor, Plot No. 286/1, Rajiv
Gandhi Salai (OMR), Kandanchavadi, Chennai - 600096 | Ph: +91-44-66779999
P
Please do not print this email unless it is absolutely necessary.
Hi,
I want to configure LDAP with koha 3.2. Anyone can help in this
regard?
A step by step procedure to do that will be highly appreciated.
Thanks.
Zahoor
Senior Research Associate
Al-Khawarizmi Institute of Computer Science
UET
Cell: +92-321-9676940
Office: +92-42-9029450 ext 813