[Koha-bugs] [Bug 7099] ActiveDirectory authentication thru LDAP doesn't work when principal_name is used with update or replicate
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 27 09:39:45 CEST 2011
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7099
--- Comment #1 from wallen_tan at southville.edu.ph 2011-10-27 07:39:45 UTC ---
Cause:
$userldapentry remains unset when authenticating by bind
if ( $ldap->{auth_by_bind} ) {
my $principal_name = $ldap->{principal_name};
if ($principal_name and $principal_name =~ /\%/) {
$principal_name = sprintf($principal_name,$userid);
} else {
$principal_name = $userid;
}
my $res = $db->bind( $principal_name, password => $password );
if ( $res->code ) {
$debug and warn "LDAP bind failed as kohauser $principal_name: ".
description($res);
return 0;
}
}
this is called in sub ldap_entry_2_hash ($$) and will cause the code to fail.
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the Koha-bugs
mailing list