summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_rpc.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-14 01:29:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:07 -0500
commitdcd63b97702fa5a5945a500acc4b65de0aa74927 (patch)
treeba518bc3c6ad18df4d10c638561853208ba7f732 /source4/libnet/libnet_rpc.c
parent5db0c6b3042292e0f343ced3d45f2f7a8f97de12 (diff)
downloadsamba-dcd63b97702fa5a5945a500acc4b65de0aa74927.tar.gz
samba-dcd63b97702fa5a5945a500acc4b65de0aa74927.tar.bz2
samba-dcd63b97702fa5a5945a500acc4b65de0aa74927.zip
r12926: Syncronsise GUIDs on users and domains from the server. These also
appear in DNS, so need to match. Andrew Bartlett (This used to be commit d092b0493d7c61112ef132c8fb259c15f189c5f6)
Diffstat (limited to 'source4/libnet/libnet_rpc.c')
-rw-r--r--source4/libnet/libnet_rpc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c
index aba393d7fb..5b63f482df 100644
--- a/source4/libnet/libnet_rpc.c
+++ b/source4/libnet/libnet_rpc.c
@@ -274,8 +274,15 @@ NTSTATUS libnet_RpcConnectDCInfo(struct libnet_context *ctx,
return status;
}
r->out.realm = lsa_query_info2.out.info->dns.dns_domain.string;
+ r->out.guid = talloc(r, struct GUID);
+ if (!r->out.guid) {
+ r->out.error_string = NULL;
+ return NT_STATUS_NO_MEMORY;
+ }
+ *r->out.guid = lsa_query_info2.out.info->dns.domain_guid;
} else {
r->out.realm = NULL;
+ r->out.guid = NULL;
}
/* Grab the domain SID (regardless of the result of the previous call */