Commit 87e27540 authored by Vitaly Lipatov's avatar Vitaly Lipatov

tune_sssd.sh: drop smb on

parent 4e4f4971
......@@ -117,8 +117,10 @@ fi
UPHOST=$(hostname -s | tr [:lower:] [:upper:])
WORKGROUP=$(echo "$REALM" | sed -e "s|\..*||")
# TODO: check testparm output
# Нужен для работы net ads
if ! grep -q "realm = $REALM" /etc/samba/smb.conf ; then
cat <<EOF >>/etc/samba/smb.conf
cat <<EOF >>/etc/samba/smb.conf
[global]
security = ads
......@@ -130,14 +132,11 @@ cat <<EOF >>/etc/samba/smb.conf
wins support = no
EOF
testparm || fatal
echo "Check /etc/samba/smb.conf"
( cd /etc ; git diff samba/smb.conf | cat )
testparm || fatal
echo "Check /etc/samba/smb.conf"
( cd /etc ; git diff samba/smb.conf | cat )
fi
# Не нужно?!
#serv smb on
# Вход в домен
rm -fv /etc/krb5.keytab
kinit $ADMIN || exit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment