Commit 1af1632c authored by Yadd's avatar Yadd
Browse files

LEMONLDAP::NG : minor security fix : PE_USERNOTFOUND has not to be used

parent fbc8b7bf
......@@ -50,7 +50,7 @@ sub search {
print STDERR $mesg->error . "\n";
return PE_LDAPERROR;
}
return PE_USERNOTFOUND unless ( $self->{entry} = $mesg->entry(0) );
return PE_BADCREDENTIALS unless ( $self->{entry} = $mesg->entry(0) );
$self->{dn} = $self->{entry}->dn();
PE_OK;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment