summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-07-24 06:02:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:01:17 -0500
commit4a517b14331a8e3f4e22936470a9dfb771a7d48c (patch)
tree6b72933c03c87253d0fe0d3f0585a03eda596141
parent276436311fcae92609116732d5d7e864bedbb886 (diff)
downloadsamba-4a517b14331a8e3f4e22936470a9dfb771a7d48c.tar.gz
samba-4a517b14331a8e3f4e22936470a9dfb771a7d48c.tar.bz2
samba-4a517b14331a8e3f4e22936470a9dfb771a7d48c.zip
r24011: Keep the connect handle around in libnet, in case we want it.
Andrew Bartlett (This used to be commit e6ccdb6cea267b992d1b586757f0b84afbc5e45f)
-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;