repo.or.cz
/
samba4-gss.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ctdb:events: Add 46.update-keytabs.script for 'recovered' event
[samba4-gss.git]
/
ctdb
/
config
/
events
/
legacy
/
46.update-keytabs.script
blob
f207a7b6a8ffaee85e53f0aff9acad2d01a33273
1
#!/bin/sh
2
# script to update keytab
3
4
[
-n
"
$CTDB_BASE
"
]
||
5
CTDB_BASE
=
$
(
d
=
$
(
dirname
"
$0
"
) &&
cd -P
"
$d
"
&&
dirname
"
$PWD
"
)
6
7
case
"
$1
"
in
8
recovered
)
9
net ads keytab create
--option
=
'sync machine password script='
--configfile
=
"
$CTDB_BASE
/lib/server.conf"
10
;;
11
esac