r24011: Keep the connect handle around in libnet, in case we want it.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 24 Jul 2007 06:02:32 +0000 (06:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:01:17 +0000 (15:01 -0500)
Andrew Bartlett
(This used to be commit e6ccdb6cea267b992d1b586757f0b84afbc5e45f)

source4/libnet/libnet.h
source4/libnet/libnet_domain.c

index 4a4477cc916957c29c644c8af936eb03778cfa3f..27472e0d0de02ff3cf55bc28b91d8c63046c9ee6 100644 (file)
@@ -31,6 +31,7 @@ struct libnet_context {
                const char *name;
                uint32_t access_mask;
                struct policy_handle handle;
+               struct policy_handle connect_handle;
                int buf_size;
        } samr;
 
index d2be697055d2243a58a9b275cf4e46fb338534bb..0b2809394929c0aae4aa5d1854dc59a066fe09db 100644 (file)
@@ -359,6 +359,7 @@ NTSTATUS libnet_DomainOpenSamr_recv(struct composite_context *c, struct libnet_c
 
                /* store the resulting handle and related data for use by other
                   libnet functions */
+               ctx->samr.connect_handle = s->connect_handle;
                ctx->samr.handle      = s->domain_handle;
                ctx->samr.name        = talloc_steal(ctx, s->domain_name.string);
                ctx->samr.access_mask = s->access_mask;