]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
provision: add a comment that the value of krbtgtpass is ignored in the backend
authorStefan Metzmacher <metze@samba.org>
Mon, 21 Feb 2022 14:22:50 +0000 (15:22 +0100)
committerJule Anger <janger@samba.org>
Mon, 7 Mar 2022 10:12:26 +0000 (10:12 +0000)
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)

python/samba/provision/__init__.py

index b21b411b51aee02ba52f86621a5351f17fc4dd01..e8903ad846f588151fd3146151a1aa34666dc77b 100644 (file)
@@ -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)