1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/ctdb/config/events/legacy/46.update-keytabs.script
Pavel Filipenský 1fcaf066f4 ctdb:events: Add 46.update-keytabs.script for 'recovered' event
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>
2024-07-26 17:12:36 +00:00

12 lines
264 B
Bash
Executable File

#!/bin/sh
# script to update keytab
[ -n "$CTDB_BASE" ] ||
CTDB_BASE=$(d=$(dirname "$0") && cd -P "$d" && dirname "$PWD")
case "$1" in
recovered)
net ads keytab create --option='sync machine password script=' --configfile="$CTDB_BASE/lib/server.conf"
;;
esac