summaryrefslogtreecommitdiff
path: root/libgpo/gpo_fetch.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-12-10 22:50:47 +0100
committerAndreas Schneider <asn@samba.org>2013-12-12 13:34:50 +0100
commit36abc1c4e63a9a69fe748bb6c1146e5ab0e9117d (patch)
tree74c9a769fa921d477b671874280294f0dcfa3a43 /libgpo/gpo_fetch.c
parent24cc4d5ac1a44f66322b3e8bfd17f266fcac0e22 (diff)
downloadsamba-36abc1c4e63a9a69fe748bb6c1146e5ab0e9117d.tar.gz
libgpo: use existing connection to the ds for the sysvol queries.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'libgpo/gpo_fetch.c')
-rw-r--r--libgpo/gpo_fetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgpo/gpo_fetch.c b/libgpo/gpo_fetch.c
index 2d550691714..9fdff7c2f2b 100644
--- a/libgpo/gpo_fetch.c
+++ b/libgpo/gpo_fetch.c
@@ -164,8 +164,9 @@ NTSTATUS gpo_fetch_files(TALLOC_CTX *mem_ctx,
&unix_path);
NT_STATUS_NOT_OK_RETURN(result);
+ /* for now reuse the existing ds connection */
- result = gpo_connect_server(ads, server, service, &cli);
+ result = gpo_connect_server(ads, ads->server.ldap_server, service, &cli);
NT_STATUS_NOT_OK_RETURN(result);
result = gpo_prepare_local_store(mem_ctx, cache_dir, unix_path);