Commit 898babae authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(auth): show filter and deal with wrong filters

issue #1083
parent acb9a1f5
......@@ -166,7 +166,8 @@ sub search_user {
warn "LDAP retry ".$mesg->code." ".$mesg->error if $retry > 1;
if ( $retry <= 3 && $mesg->code && $mesg->code != 4 ) {
# 89: bad filter
if ( $retry <= 3 && $mesg->code && $mesg->code != 4 && $mesg->code != 89) {
warn "LDAP error ".$mesg->code." ".$mesg->error."."
."Retrying ! [$retry]" if $retry;
$LDAP_ADMIN = undef;
......@@ -180,7 +181,7 @@ sub search_user {
);
}
die "ERROR: ".$mesg->code." : ".$mesg->error
die "ERROR: ".$mesg->code." : ".$mesg->error." ".($filter or '')
if $mesg->code;
return if !$mesg->count();
......
Markdown is supported
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