1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

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>
This commit is contained in:
Günther Deschner 2013-12-10 22:50:47 +01:00 committed by Andreas Schneider
parent 24cc4d5ac1
commit 36abc1c4e6

View 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);