libgpo: use existing connection to the ds for the sysvol queries.
authorGünther Deschner <gd@samba.org>
Tue, 10 Dec 2013 21:50:47 +0000 (22:50 +0100)
committerAndreas Schneider <asn@samba.org>
Thu, 12 Dec 2013 12:34:50 +0000 (13:34 +0100)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
libgpo/gpo_fetch.c

index 2d5506917141baa5ccc49e62a62c86f7fb96994b..9fdff7c2f2b49d0640e04c7111b12fc9440ed0fb 100644 (file)
@@ -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);