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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 16 Aug 2016 14:26:28 +0000 (16:26 +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>
(cherry picked from commit 2a8ccc0841184c2df9fc19f8452009b92071c115)

Autobuild-User(v4-4-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-4-test): Tue Aug 16 16:26:28 CEST 2016 on sn-devel-144

libgpo/gpo_fetch.c

index 07141d42cac738a9a673adbc32cf7a1c77c65a0c..6b01544faeeedc46417b12852b44d6edb5ed5e7d 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);