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

[cid:image003.jpg@01CA11E8.36FE70D0]
__________________________________________________________________________________________________________________________________
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 ur Rehman Tanoli

Senior Research Associate

Al-Khawarizmi Institute of Computer Science

UET Lahore, Pakistan

Cell: +92-321-9676940

Office: +92-42-9029450 ext 813


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4292 (20090730) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

________________________________
This email and any attachment(s) transmitted may contain confidential, 
proprietary or legally privileged information relating to D&B TransUnion 
Analytic and Decision Services Private Limited. The information is intended 
solely for the recipient. No part of this information may be disclosed, copied, 
reproduced, distributed or made available in any form whatsoever without prior 
authorization. If you have received this email in error please notify the 
sender electronically and delete all copies immediately. This email may contain 
viruses. D&B TransUnion Analytic and Decision Services Private Limited has 
taken every reasonable precaution to minimize this risk, but is not liable for 
any damage you may sustain as a result of any virus in this email. We strongly 
advise you to ensure that the email and any attachment(s) are free of any virus.

<<inline: image002.gif>>

<<inline: image003.jpg>>

_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel

Reply via email to