[Koha] LDAP support 2.2.4&In-Reply-To=43984C55.1030907@free.fr

Joshua Ferraro jmf at liblime.com
Sat Mar 4 18:11:34 NZDT 2006


Bruno,

Can you send me your LDAP files or a diff with rel_2_2 so that
I can include this fix in 2.2.6?

Thanks,

Joshua

On Thu, Mar 02, 2006 at 09:38:29AM +0100, Bruno Marmol wrote:
> 
> "Mark Flach" <mwflach at prometa.or.cr> writes:
> 
> > Did you ever get LDAP to work on Koha?  I'm getting the same password
> > error.
> 
> Yes, but there was some post on the same subject on the list...
> 
> Here is a piece of code to fix the problem.  The original code try to do an
> anonymous bind...  Replace with a bind with the user/passwd
> 
> 	
> 	my $db = Net::LDAP->new( $ldapserver );
> 
>         if (!defined($db)) {
> 	    print STDERR "Can not create LDAP object!\n";
> 	    return 0;
> 	};
> =>	my $res =$db->bind( "uid=$userid,$name",password => $password);
> 	
> 	# check connexion
> 	if($res->code) {
> 		# auth refused
> 		#warn "LDAP Auth: not binded";
> 		return 0;
> 	# search user
> 	} else { ...
> 
> I suppose it will work after...
> 
> Hope that help
> 
> -- 
> Bruno Marmol.
> 
> Ingénieur à la Direction Information Scientifique et de la communication
> 
> Email: Bruno.Marmol at Inrialpes.Fr - Tel: 04 76 61 53 04 - Fax: 04 76 61 52 52
> Inria Rhône Alpes.    
> ZIRST - 655 Av de l'Europe.  - Montbonnot St Martin 
> 38334 St Ismier Cedex - France
> 
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha

-- 
Joshua Ferraro               VENDOR SERVICES FOR OPEN-SOURCE SOFTWARE
President, Technology       migration, training, maintenance, support
LibLime                                Featuring Koha Open-Source ILS
jmf at liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS


More information about the Koha mailing list