Skip to content

Commit

Permalink
rabbit_ldap_seed: Add commented out verbose logging for LDAP operations
Browse files Browse the repository at this point in the history
(cherry picked from commit 7f85948)
(cherry picked from commit 1443517)
(cherry picked from commit eb18c5d)
  • Loading branch information
the-mikedavis authored and mergify[bot] committed May 2, 2024
1 parent b2b52b5 commit a254f80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deps/rabbitmq_auth_backend_ldap/test/rabbit_ldap_seed.erl
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ add(H, {A, B}) ->
ok = eldap:add(H, A, B).

connect({Host, Port}) ->
{ok, H} = eldap:open([Host], [{port, Port}]),
LogOpts = [],
%% This can be swapped with the line above to add verbose logging of the
%% LDAP operations used for seeding.
%% LogOpts = [{log, fun(_Level, FormatString, FormatArgs) -> ct:pal(FormatString, FormatArgs) end}],
{ok, H} = eldap:open([Host], [{port, Port} | LogOpts]),
ok = eldap:simple_bind(H, "cn=admin,dc=rabbitmq,dc=com", "admin"),
H.

Expand Down

0 comments on commit a254f80

Please sign in to comment.