s4-join: raise mininum password length to 32 in new join code
authorAndrew Tridgell <tridge@samba.org>
Tue, 9 Nov 2010 22:14:57 +0000 (09:14 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 9 Nov 2010 22:53:18 +0000 (09:53 +1100)
source4/scripting/python/samba/join.py

index 5f11f666410c6cdf1c622e0c1f7d0a03ebda13e0..571b822f50dbda3ed05a006f419533a382aff9dc 100644 (file)
@@ -76,7 +76,7 @@ class dc_join:
         ctx.dc_dnsHostName = ctx.get_dnsHostName()
         ctx.behavior_version = ctx.get_behavior_version()
 
-        ctx.acct_pass = samba.generate_random_password(12, 32)
+        ctx.acct_pass = samba.generate_random_password(32, 40)
 
         # work out the DNs of all the objects we will be adding
         ctx.server_dn = "CN=%s,CN=Servers,CN=%s,CN=Sites,%s" % (ctx.myname, ctx.site, ctx.config_dn)