summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-02-21 15:22:50 +0100
committerJule Anger <janger@samba.org>2022-03-07 10:54:17 +0000
commit8c9bb2cafd62411cb904a8199e96e3948bbe9c20 (patch)
tree362a9a8f609e9603b10d265155fe473bff9496a6
parent66d8622b6467419e7953100e752f448355e3a3ae (diff)
downloadsamba-8c9bb2cafd62411cb904a8199e96e3948bbe9c20.tar.gz
provision: add a comment that the value of krbtgtpass is ignored in the backend
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> (cherry picked from commit 725c94d57d3d656bc94633dacbac683a4c11d3e6)
-rw-r--r--python/samba/provision/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/samba/provision/__init__.py b/python/samba/provision/__init__.py
index 2f513f8383d..ff9b8fac916 100644
--- a/python/samba/provision/__init__.py
+++ b/python/samba/provision/__init__.py
@@ -1924,6 +1924,9 @@ def provision_fill(samdb, secrets_ldb, logger, names, paths,
invocationid = str(uuid.uuid4())
if krbtgtpass is None:
+ # Note that the machinepass value is ignored
+ # as the backend (password_hash.c) will generate its
+ # own random values for the krbtgt keys
krbtgtpass = samba.generate_random_machine_password(128, 255)
if machinepass is None:
machinepass = samba.generate_random_machine_password(120, 120)