summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-02-21 15:08:34 +0100
committerStefan Metzmacher <metze@samba.org>2022-02-23 07:50:38 +0000
commit3b91be36581de1007427d539daffdaa62752412d (patch)
treeab548fa4296dec6b23b85bfd7bbbb28da21f4c08 /python
parent59ac782452c4993274fa837256a8b9c5675e707b (diff)
downloadsamba-3b91be36581de1007427d539daffdaa62752412d.tar.gz
provision: use 120 characters for the dns account password
We should use the same as for the computer account. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14984 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/provision/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/provision/__init__.py b/python/samba/provision/__init__.py
index 1723d9935d4..2f513f8383d 100644
--- a/python/samba/provision/__init__.py
+++ b/python/samba/provision/__init__.py
@@ -1928,7 +1928,7 @@ def provision_fill(samdb, secrets_ldb, logger, names, paths,
if machinepass is None:
machinepass = samba.generate_random_machine_password(120, 120)
if dnspass is None:
- dnspass = samba.generate_random_password(128, 255)
+ dnspass = samba.generate_random_password(120, 120)
samdb.transaction_start()
try: