View | Details | Raw Unified | Return to bug 5094
Collapse All | Expand All

(-)a/C4/Auth_with_ldap.pm (-2 / +8 lines)
Lines 124-131 sub checkpw_ldap { Link Here
124
        }
124
        }
125
125
126
	# FIXME dpavlin -- we really need $userldapentry leater on even if using auth_by_bind!
126
	# FIXME dpavlin -- we really need $userldapentry leater on even if using auth_by_bind!
127
	my $search = search_method($db, $userid) or return 0;   # warnings are in the sub
127
128
	$userldapentry = $search->shift_entry;
128
	# BUG #5094
129
	# 2010-08-04 JeremyC
130
	# a $userldapentry is only needed if either updating or replicating are enabled
131
	if($config{update} or $config{replicate}) {
132
	    my $search = search_method($db, $userid) or return 0;   # warnings are in the sub
133
	    $userldapentry = $search->shift_entry;
134
	}
129
135
130
	} else {
136
	} else {
131
        my $search = search_method($db, $userid) or return 0;   # warnings are in the sub
137
        my $search = search_method($db, $userid) or return 0;   # warnings are in the sub

Return to bug 5094