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

environments/ppa-mbqj77/deployments/1
Xavier Guimard 17 years ago
parent fbc8b7bfd2
commit 1af1632c72
  1. 2
      modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDBLDAP.pm

@ -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;
}

Loading…
Cancel
Save