1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4-util: windows only accepts lowercase hex encodings for extended DNs

This commit is contained in:
Andrew Tridgell 2009-09-22 14:20:36 -07:00
parent 430ee62e0c
commit fb84edabbe

View File

@ -163,8 +163,11 @@ _PUBLIC_ char *data_blob_hex_string(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob)
return NULL;
}
/* this must be lowercase or w2k8 cannot join a samba domain,
as this routine is used to encode extended DNs and windows
only accepts lowercase hexadecimal numbers */
for (i = 0; i < blob->length; i++)
slprintf(&hex_string[i*2], 3, "%02X", blob->data[i]);
slprintf(&hex_string[i*2], 3, "%02x", blob->data[i]);
hex_string[(blob->length*2)] = '\0';
return hex_string;