Browse Source

fix(ldap): return unrecoverable_error if more than on match found

Zaiming (Stone) Shi 2 years atrás
parent
commit
9ee2cb9c79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/emqx_ldap/src/emqx_ldap.erl

+ 1 - 1
apps/emqx_ldap/src/emqx_ldap.erl

@@ -279,7 +279,7 @@ do_ldap_query(
                             count => length(L)
                             count => length(L)
                         }
                         }
                     ),
                     ),
-                    {error, {recoverable_error, Msg}}
+                    {error, {unrecoverable_error, Msg}}
             end;
             end;
         {error, 'noSuchObject'} ->
         {error, 'noSuchObject'} ->
             {ok, []};
             {ok, []};