/usr/share/sadms-2.0.15/_test-domain.sh is in sadms 2.0.15.repack-0ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #!/bin/bash
# bbou@ac-toulouse.fr
# 2007-06-07 10:53:11
# _test-domain.sh
### P A R A M S
MYVERBOSE=
if [ "$1" = "-v" ]; then
MYVERBOSE="True"
shift
fi
### I N C L U D E
. ./_include.sh
### S T A R T
echo "--------------------------------------------------------------------------------"
echo "DOMAIN INFO"
echo "--------------------------------------------------------------------------------"
echo "+WINBIND"
echo "+ping winbind"
if ! wbinfo --ping > /dev/null; then
echo "winbind is not alive: start winbind daemon"
exit 1
fi
echo "winbind is alive"
echo "+DOMAINS"
echo "+all domains"
wbinfo --all-domains
echo "+DOMAIN INFO"
echo "+own domain"
domain=
if wbinfo --own-domain; then
domain=`wbinfo --own-domain`
fi
if [ ! -z "${domain}" ]; then
echo "+domain info"
wbinfo --domain-info "${domain}" | sed 's/[[:space:]]\+/ /g'
fi
echo "+trusted domains"
wbinfo --trusted-domains
echo "+sequence numbers of all known domains"
wbinfo --sequence
echo "+DOMAIN EXTRA INFOS"
echo "+separator"
wbinfo --separator
exit 0
|