mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
cldap: clear remote address after cldap_dse_fill
Need to clear the remote address as the ldb handle is shared, and changes made by internal processes would be logged as coming from the last cldap requester Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
9f55986a59
commit
fcbb3f31fe
@ -166,6 +166,13 @@ void cldapd_rootdse_request(struct cldap_socket *cldap,
|
||||
cldapd_rootdse_fill(cldapd, tmp_ctx, search, &reply.response,
|
||||
reply.result);
|
||||
|
||||
/*
|
||||
* We clear this after cldapd_rootdse_fill as this is shared ldb
|
||||
* and if it was not cleared the audit logging would report changes
|
||||
* made by internal processes as coming from the last cldap requester
|
||||
*/
|
||||
ldb_set_opaque(cldapd->samctx, "remoteAddress", NULL);
|
||||
|
||||
status = cldap_reply_send(cldap, &reply);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(2,("cldap rootdse query failed '%s' - %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user