s4-subdomain: use a password length of 128
authorAndrew Tridgell <tridge@samba.org>
Mon, 5 Sep 2011 06:45:28 +0000 (16:45 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 13 Sep 2011 05:38:35 +0000 (15:38 +1000)
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>

source4/scripting/python/samba/join.py

index bd343fa4c550f348c0887ec613ad0027f42d7c86..ddc4380a6545acf10317709555bf5776f0b0a51a 100644 (file)
@@ -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