]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:script: clustered samba: Add script updatekeytab.sh
authorPavel Filipenský <pfilipensky@samba.org>
Tue, 9 Apr 2024 06:39:40 +0000 (08:39 +0200)
committerPavel Filipensky <pfilipensky@samba.org>
Fri, 26 Jul 2024 17:12:36 +0000 (17:12 +0000)
Admin should use this script in smb.conf parameter 'sync machine
password script' in clustered samba

TODO: onnode will update the keytab on all connected nodes, so the
update will happen on the triggering node twice. This can be improved in
the future.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=6750

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/script/updatekeytab.sh [new file with mode: 0755]

diff --git a/source3/script/updatekeytab.sh b/source3/script/updatekeytab.sh
new file mode 100755 (executable)
index 0000000..8883b13
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+onnode -p connected "net ads keytab create --option='sync machine password script='"