#!/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