diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2018-04-04 12:38:25 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-05-31 09:54:18 +0200 |
commit | fcbb3f31fea14798d8b20ae4a3ec034eef3711ba (patch) | |
tree | 064b92c504cf2bc0edc6f89501d5be8b3fb1e383 /source4/cldap_server | |
parent | 9f55986a59436b2194e86be24697370a33d6239f (diff) | |
download | samba-fcbb3f31fea14798d8b20ae4a3ec034eef3711ba.tar.gz |
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>
Diffstat (limited to 'source4/cldap_server')
-rw-r--r-- | source4/cldap_server/rootdse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/cldap_server/rootdse.c b/source4/cldap_server/rootdse.c index 3f389ce8225..a5e1c6b5c4e 100644 --- a/source4/cldap_server/rootdse.c +++ b/source4/cldap_server/rootdse.c @@ -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", |