]> granicus.if.org Git - ejabberd/commitdiff
Use hide_sensitive_log_data in eldap.erl
authorBadlop <badlop@process-one.net>
Thu, 3 Sep 2015 14:27:42 +0000 (16:27 +0200)
committerBadlop <badlop@process-one.net>
Thu, 3 Sep 2015 14:28:21 +0000 (16:28 +0200)
src/eldap.erl

index 20a5b6139b3e817e5d22e1c14caaf12eb550cd6b..dbd561afd1485868f64dd1cffa39e5ea860bbf50 100644 (file)
@@ -824,7 +824,7 @@ send_command(Command, From, S) ->
     {Name, Request} = gen_req(Command),
     Message = #'LDAPMessage'{messageID = Id,
                             protocolOp = {Name, Request}},
-    ?DEBUG("~p~n", [{Name, Request}]),
+    ?DEBUG("~p~n", [{Name, ejabberd_config:may_hide_data(Request)}]),
     {ok, Bytes} = 'ELDAPv3':encode('LDAPMessage',
                                Message),
     case (S#eldap.sockmod):send(S#eldap.fd, Bytes) of
@@ -1147,7 +1147,7 @@ bind_request(Socket, S) ->
                         authentication = {simple, S#eldap.passwd}},
     Message = #'LDAPMessage'{messageID = Id,
                             protocolOp = {bindRequest, Req}},
-    ?DEBUG("Bind Request Message:~p~n", [Message]),
+    ?DEBUG("Bind Request Message:~p~n", [ejabberd_config:may_hide_data(Message)]),
     {ok, Bytes} = 'ELDAPv3':encode('LDAPMessage',
                                Message),
     case (S#eldap.sockmod):send(Socket, Bytes) of