|
32 |
. "/usr/share/univention-config-registry/init-autostart.lib" |
32 |
. "/usr/share/univention-config-registry/init-autostart.lib" |
33 |
check_autostart samba-ad-dc samba4/autostart |
33 |
check_autostart samba-ad-dc samba4/autostart |
34 |
fi |
34 |
fi |
35 |
SERVER_ROLE=`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1` |
35 |
testparm_output=$(samba-tool testparm --parameter-name="server role" 2>/dev/null) |
|
|
36 |
rc=$? |
37 |
if [ $rc != 0 ]; then |
38 |
log_failure_msg "samba-tool testparm" |
39 |
exit 1 |
40 |
fi |
41 |
if [ -z != "$testparm_output" ]; then |
42 |
log_failure_msg 'samba-tool testparm --parameter-name="server role"' |
43 |
exit 1 |
44 |
fi |
45 |
SERVER_ROLE=$(echo "$testparm_output" | tail -1) |
36 |
if [ "$SERVER_ROLE" != "active directory domain controller" ]; then |
46 |
if [ "$SERVER_ROLE" != "active directory domain controller" ]; then |
37 |
echo "Samba is not configured as AD DC." |
47 |
echo "Samba is not configured as AD DC." |
38 |
exit 0 |
48 |
exit 0 |