From bb971b44b84a72d628205fba0c27207f5fd00bf2 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 30 Oct 2003 17:17:51 +0000 Subject: More GUID->struct uuid changes. Printer publishing now uses struct uuid. Also changes ads_pull_guid to unpack it from the wire format. (This used to be commit 671b434cc4b422144ab8f5858ae9c2179de701e1) --- source3/libads/ldap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/libads') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index ed26bf07f2..2ee8e6fe93 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -1623,16 +1623,18 @@ BOOL ads_pull_uint32(ADS_STRUCT *ads, * @return boolean indicating success **/ BOOL ads_pull_guid(ADS_STRUCT *ads, - void *msg, GUID *guid) + void *msg, struct uuid *guid) { char **values; + UUID_FLAT flat_guid; values = ldap_get_values(ads->ld, msg, "objectGUID"); if (!values) return False; if (values[0]) { - memcpy(guid, values[0], sizeof(GUID)); + memcpy(&flat_guid.info, values[0], sizeof(UUID_FLAT)); + smb_uuid_unpack(flat_guid, guid); ldap_value_free(values); return True; } -- cgit