diff options
Diffstat (limited to 'source4/cldap_server/rootdse.c')
-rw-r--r-- | source4/cldap_server/rootdse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/cldap_server/rootdse.c b/source4/cldap_server/rootdse.c index b8956169d2..3f389ce822 100644 --- a/source4/cldap_server/rootdse.c +++ b/source4/cldap_server/rootdse.c @@ -158,6 +158,11 @@ void cldapd_rootdse_request(struct cldap_socket *cldap, reply.response = NULL; reply.result = &result; + /* Note: The remoteAddress should rather be set on a ldb request. + * We can set this savely on the context here, + * since cldapd_rootdse_fill operates synchronously. */ + ldb_set_opaque(cldapd->samctx, "remoteAddress", src); + cldapd_rootdse_fill(cldapd, tmp_ctx, search, &reply.response, reply.result); |