From 8d1ea87e027f78b4792984431e8997584b918df3 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 3 Sep 2015 16:27:42 +0200 Subject: [PATCH] Use hide_sensitive_log_data in eldap.erl --- src/eldap.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eldap.erl b/src/eldap.erl index 20a5b6139..dbd561afd 100644 --- a/src/eldap.erl +++ b/src/eldap.erl @@ -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