1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00

r23829: Add ads_get_attrname_by_guid().

Guenther
This commit is contained in:
Günther Deschner
2007-07-11 10:26:02 +00:00
committed by Gerald (Jerry) Carter
parent b636f8cdad
commit a84fd83006
2 changed files with 67 additions and 2 deletions

View File

@@ -133,3 +133,19 @@ BOOL smb_string_to_uuid(const char *in, struct GUID* uu)
out:
return ret;
}
/*****************************************************************
Return the binary string representation of a GUID.
Caller must free.
*****************************************************************/
char *guid_binstring(const struct GUID *guid)
{
UUID_FLAT guid_flat;
smb_uuid_pack(*guid, &guid_flat);
return binary_string_rfc2254((char *)guid_flat.info, UUID_FLAT_SIZE);
}