summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-22 14:20:36 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-22 17:10:05 -0700
commitfb84edabbe9f358031117de2cf78613c704ac600 (patch)
treef00cb4b77fc62c97dbc29de2a8221f66f5a628f0 /lib
parent430ee62e0c85c40df250ac42a3c35f22ddc70031 (diff)
downloadsamba-fb84edabbe9f358031117de2cf78613c704ac600.tar.gz
samba-fb84edabbe9f358031117de2cf78613c704ac600.tar.bz2
samba-fb84edabbe9f358031117de2cf78613c704ac600.zip
s4-util: windows only accepts lowercase hex encodings for extended DNs
Diffstat (limited to 'lib')
-rw-r--r--lib/util/data_blob.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/data_blob.c b/lib/util/data_blob.c
index c7d01bacc7..825d8cf88c 100644
--- a/lib/util/data_blob.c
+++ b/lib/util/data_blob.c
@@ -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;