libgpo: Correctly use the 'server' parameter after parsing it out of the GPO path.
authorJeremy Allison <jra@samba.org>
Tue, 9 Aug 2016 18:57:20 +0000 (11:57 -0700)
committerUri Simchoni <uri@samba.org>
Wed, 10 Aug 2016 06:18:17 +0000 (08:18 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12135

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
libgpo/gpo_fetch.c

index 97ecd62d9d7843a80097cb283b30b027f7800d6e..836bc23f2d286986ffbfcd3248996eb21680904e 100644 (file)
@@ -166,7 +166,7 @@ NTSTATUS gpo_fetch_files(TALLOC_CTX *mem_ctx,
 
        /* for now reuse the existing ds connection */
 
-       result = gpo_connect_server(ads, ads->server.ldap_server, service, &cli);
+       result = gpo_connect_server(ads, server, service, &cli);
        NT_STATUS_NOT_OK_RETURN(result);
 
        result = gpo_prepare_local_store(mem_ctx, cache_dir, unix_path);