diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-09-05 16:45:28 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-09-13 15:38:35 +1000 |
commit | b8c6e36b09c72bf77077f853b4aac910c04a57ed (patch) | |
tree | a88d49f6123be29fef903f354b6328a89be046e2 /source4 | |
parent | 4ff99264cbc4ae39c3160a8eeba3ee27be899746 (diff) | |
download | samba-b8c6e36b09c72bf77077f853b4aac910c04a57ed.tar.gz samba-b8c6e36b09c72bf77077f853b4aac910c04a57ed.tar.xz samba-b8c6e36b09c72bf77077f853b4aac910c04a57ed.zip |
s4-subdomain: use a password length of 128
windows seems to use a fixed size for this password. It is possible
that windows servers can only handle one size, given we have observed
some strange behaviour from the windows kdc when we setup trusts
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/join.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/join.py b/source4/scripting/python/samba/join.py index bd343fa4c55..ddc4380a654 100644 --- a/source4/scripting/python/samba/join.py +++ b/source4/scripting/python/samba/join.py @@ -892,7 +892,7 @@ def join_subdomain(server=None, creds=None, lp=None, site=None, netbios_name=Non ctx.domguid = str(uuid.uuid4()) ctx.acct_dn = None ctx.dnshostname = "%s.%s" % (ctx.myname, ctx.dnsdomain) - ctx.trustdom_pass = samba.generate_random_password(32, 40) + ctx.trustdom_pass = samba.generate_random_password(128, 128) ctx.userAccountControl = samba.dsdb.UF_SERVER_TRUST_ACCOUNT | samba.dsdb.UF_TRUSTED_FOR_DELEGATION |