[Koha-devel] Configuring LDAP with Koha

Sai bhalaji Dhinakaran SaiBhalaji.Dhinakaran at dnbtransunion.com
Fri Jul 31 10:37:18 CEST 2009


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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20090731/c4e8f5d9/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 5665 bytes
Desc: image002.gif
URL: </pipermail/koha-devel/attachments/20090731/c4e8f5d9/attachment-0003.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 2409 bytes
Desc: image003.jpg
URL: </pipermail/koha-devel/attachments/20090731/c4e8f5d9/attachment-0003.jpg>


More information about the Koha-devel mailing list