Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Netdot/LDAP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ sub check_credentials {

my $base_dn = $r->dir_config("NetdotLDAPSearchBase");
if ( $base_dn ){
$user_dn .= ",$base_dn";
# $user_dn .= ",$base_dn";
}

my $ldap;
Expand All @@ -149,12 +149,12 @@ sub check_credentials {
my $result = $ldap->search(
base => $proxy_base,
scope => 'subtree',
filter => '(cn='.$username.')',
filter => '('.$user_dn.')',
attrs => ['dn']
);
if ($result->count() == 1) {
$user_dn = $result->entry(0)->dn();
$r->log_error("User Found base_dn=".$proxy_base." filter=(cn=".$username.") user_dn=".$user_dn);
$r->log_error("User Found base_dn=".$proxy_base." filter=(".$user_dn.") user_dn=".$user_dn);
} else {
$r->log_error("ERROR LDAP proxy search: ".$result->count()." results filter (cn=".$username.") base='".$proxy_base."'");
if ( $fail_to_local ){
Expand Down