summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-05-11 03:30:21 +0000
committerGerald Carter <jerry@samba.org>2002-05-11 03:30:21 +0000
commitd41d9b6fc55c358fadac5389cec541e429c8d555 (patch)
tree2c58a2392af41adc8d937329499a7f604b2609e3 /source3/utils
parent58c3f9d6d5f9ab97106453615f60997fddcefe86 (diff)
downloadsamba-d41d9b6fc55c358fadac5389cec541e429c8d555.tar.gz
samba-d41d9b6fc55c358fadac5389cec541e429c8d555.tar.bz2
samba-d41d9b6fc55c358fadac5389cec541e429c8d555.zip
merge from SAMBA_2_2
(This used to be commit b41cefb4c0670b06564ac79fa10aff8d60069f10)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 20f2b83156..471e414683 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -235,6 +235,14 @@ static NTSTATUS rpc_join_oldstyle_internals(const DOM_SID *domain_sid, struct cl
fstrcpy(trust_passwd, global_myname);
strlower(trust_passwd);
+
+ /*
+ * Machine names can be 15 characters, but the max length on
+ * a password is 14. --jerry
+ */
+
+ trust_passwd[14] = '\0';
+
E_md4hash( (uchar *)trust_passwd, orig_trust_passwd_hash);
return trust_pw_change_and_store_it(cli, mem_ctx, orig_trust_passwd_hash);