summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libnet/libnet.h1
-rw-r--r--source4/libnet/libnet_domain.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h
index 4a4477cc91..27472e0d0d 100644
--- a/source4/libnet/libnet.h
+++ b/source4/libnet/libnet.h
@@ -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;
diff --git a/source4/libnet/libnet_domain.c b/source4/libnet/libnet_domain.c
index d2be697055..0b28093949 100644
--- a/source4/libnet/libnet_domain.c
+++ b/source4/libnet/libnet_domain.c
@@ -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;