git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
430ee62
)
s4-util: windows only accepts lowercase hex encodings for extended DNs
author
Andrew Tridgell
<tridge@samba.org>
Tue, 22 Sep 2009 21:20:36 +0000
(14:20 -0700)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 23 Sep 2009 00:10:05 +0000
(17:10 -0700)
lib/util/data_blob.c
patch
|
blob
|
history
diff --git
a/lib/util/data_blob.c
b/lib/util/data_blob.c
index c7d01bacc7ad1b33f05bccc24ad0adb81ab53f51..825d8cf88ca11c1c2a10a17b89d7184fd4bdaf1a 100644
(file)
--- 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, "%02
X
", blob->data[i]);
+ slprintf(&hex_string[i*2], 3, "%02
x
", blob->data[i]);
hex_string[(blob->length*2)] = '\0';
return hex_string;