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:
committed by
Gerald (Jerry) Carter
parent
b636f8cdad
commit
a84fd83006
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user