UNIHDR hdr_dns_dom_name;
UNIHDR hdr_forest_name;
- GUID dom_guid; /* domain GUID */
+ struct uuid dom_guid; /* domain GUID */
UNISTR2 uni_nb_dom_name;
UNISTR2 uni_dns_dom_name;
NTSTATUS cli_lsa_query_info_policy2(struct cli_state *cli, TALLOC_CTX *mem_ctx,
POLICY_HND *pol, uint16 info_class,
fstring domain_name, fstring dns_name,
- fstring forest_name, GUID *domain_guid,
+ fstring forest_name,
+ struct uuid *domain_guid,
DOM_SID *domain_sid)
{
prs_struct qbuf, rbuf;
sizeof(fstring) - 1);
}
- memcpy(domain_guid, &r.info.dns_dom_info.dom_guid, sizeof(GUID));
+ memcpy(domain_guid, &r.info.dns_dom_info.dom_guid,sizeof(struct uuid));
if (r.info.dns_dom_info.ptr_dom_sid != 0) {
*domain_sid = r.info.dns_dom_info.dom_sid.sid;
if(!prs_align(ps))
return False;
- if (!prs_uint8s(False, "dom_guid", ps, depth, info->dom_guid.info, GUID_SIZE))
+ if ( !smb_io_uuid("dom_guid", &info->dom_guid, ps, depth) )
return False;
if(!prs_align(ps))
static void init_dns_dom_info(LSA_DNS_DOM_INFO *r_l, const char *nb_name,
const char *dns_name, const char *forest_name,
- GUID *dom_guid, DOM_SID *dom_sid)
+ struct uuid *dom_guid, DOM_SID *dom_sid)
{
if (nb_name && *nb_name) {
init_unistr2(&r_l->uni_nb_dom_name, nb_name, UNI_FLAGS_NONE);
/* how do we init the guid ? probably should write an init fn */
if (dom_guid) {
- memcpy(&r_l->dom_guid, dom_guid, sizeof(GUID));
+ memcpy(&r_l->dom_guid, dom_guid, sizeof(struct uuid));
}
if (dom_sid) {
char *dns_name = NULL;
char *forest_name = NULL;
DOM_SID *sid = NULL;
- GUID guid;
+ struct uuid guid;
fstring dnsdomname;
ZERO_STRUCT(guid);
POLICY_HND pol;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
DOM_SID dom_sid;
- UUID_FLAT dom_guid;
+ struct uuid dom_guid;
fstring sid_str, domain_name="", dns_name="", forest_name="";
uint32 info_class = 3;
if (info_class == 12) {
printf("domain GUID is %s\n",
- smb_uuid_string_static(
- smb_uuid_unpack_static(dom_guid)));
+ smb_uuid_string_static(dom_guid));
}
done:
return result;