mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Use hide_sensitive_log_data in eldap.erl
This commit is contained in:
parent
a85a8dff45
commit
8d1ea87e02
@ -824,7 +824,7 @@ send_command(Command, From, S) ->
|
|||||||
{Name, Request} = gen_req(Command),
|
{Name, Request} = gen_req(Command),
|
||||||
Message = #'LDAPMessage'{messageID = Id,
|
Message = #'LDAPMessage'{messageID = Id,
|
||||||
protocolOp = {Name, Request}},
|
protocolOp = {Name, Request}},
|
||||||
?DEBUG("~p~n", [{Name, Request}]),
|
?DEBUG("~p~n", [{Name, ejabberd_config:may_hide_data(Request)}]),
|
||||||
{ok, Bytes} = 'ELDAPv3':encode('LDAPMessage',
|
{ok, Bytes} = 'ELDAPv3':encode('LDAPMessage',
|
||||||
Message),
|
Message),
|
||||||
case (S#eldap.sockmod):send(S#eldap.fd, Bytes) of
|
case (S#eldap.sockmod):send(S#eldap.fd, Bytes) of
|
||||||
@ -1147,7 +1147,7 @@ bind_request(Socket, S) ->
|
|||||||
authentication = {simple, S#eldap.passwd}},
|
authentication = {simple, S#eldap.passwd}},
|
||||||
Message = #'LDAPMessage'{messageID = Id,
|
Message = #'LDAPMessage'{messageID = Id,
|
||||||
protocolOp = {bindRequest, Req}},
|
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',
|
{ok, Bytes} = 'ELDAPv3':encode('LDAPMessage',
|
||||||
Message),
|
Message),
|
||||||
case (S#eldap.sockmod):send(Socket, Bytes) of
|
case (S#eldap.sockmod):send(Socket, Bytes) of
|
||||||
|
Loading…
Reference in New Issue
Block a user