summaryrefslogtreecommitdiff
path: root/source4/lib/policy/gp_ldap.c
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-04-27 21:06:11 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 17:19:11 +0200
commit3b11a53304df29ebe2f2bfdeb5a6f0bf66553013 (patch)
treed21f56fb3f19ebba384c41ee898da3631d3e6b74 /source4/lib/policy/gp_ldap.c
parent698144851a07f66e7b786f5e1eb08d4670ddb619 (diff)
downloadsamba-3b11a53304df29ebe2f2bfdeb5a6f0bf66553013.tar.gz
samba-3b11a53304df29ebe2f2bfdeb5a6f0bf66553013.tar.bz2
samba-3b11a53304df29ebe2f2bfdeb5a6f0bf66553013.zip
Add fetch function for GPO which fetches all relevant files from the sysvol share.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/lib/policy/gp_ldap.c')
-rw-r--r--source4/lib/policy/gp_ldap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/policy/gp_ldap.c b/source4/lib/policy/gp_ldap.c
index f8806e9643..a7d5eb6158 100644
--- a/source4/lib/policy/gp_ldap.c
+++ b/source4/lib/policy/gp_ldap.c
@@ -160,14 +160,16 @@ NTSTATUS gp_init(TALLOC_CTX *mem_ctx,
return NT_STATUS_UNSUCCESSFUL;
}
- /* We don't need to keep the libnet context */
- talloc_free(net_ctx);
*gp_ctx = talloc_zero(mem_ctx, struct gp_context);
(*gp_ctx)->lp_ctx = lp_ctx;
(*gp_ctx)->credentials = credentials;
(*gp_ctx)->ev_ctx = ev_ctx;
(*gp_ctx)->ldb_ctx = ldb_ctx;
+ (*gp_ctx)->active_dc = io->out.dcs[0];
+
+ /* We don't need to keep the libnet context */
+ talloc_free(net_ctx);
return NT_STATUS_OK;
}