ctdb:events: Add 46.update-keytabs.script for 'recovered' event
[samba4-gss.git] / ctdb / config / events / legacy / 46.update-keytabs.script
blobf207a7b6a8ffaee85e53f0aff9acad2d01a33273
1 #!/bin/sh
2 # script to update keytab
4 [ -n "$CTDB_BASE" ] ||
5 CTDB_BASE=$(d=$(dirname "$0") && cd -P "$d" && dirname "$PWD")
7 case "$1" in
8 recovered)
9 net ads keytab create --option='sync machine password script=' --configfile="$CTDB_BASE/lib/server.conf"
11 esac