Commit 50be691b authored by Vitaly Lipatov's avatar Vitaly Lipatov

tune_sssd.sh: enable GSSAPI in ssh_config (allow Kerberos by default)

parent 5faa2c24
......@@ -21,7 +21,7 @@ fi
epm assure bind-utils || fatal
# Get REALM (needed for sssd tuning only) from DNS
REALM=$(host -t txt _kerberos | sed -e 's|.*"\(.*\)".*|\1|')
REALM=$(host -t txt _kerberos | sed -e 's|.*"\(.*\)".*|\1|') #"
if [ -z "$REALM" ] ; then
if [ -n "$1" ] ; then
REALM="$1"
......@@ -168,15 +168,16 @@ serv sssd on
case $(distr_info -d) in
ALTLinux)
# TODO: fix roleadd
# TODO: use common domain groups
# TODO: check libnss-role version
epm assure rolelst libnss-role
if ! rolelst | grep etersysadmin ; then
echo "etersysadmin: wheel" >> /etc/role
fi
roleadd etersysadmin wheel
;;
esac
subst "s|^# GSSAPIAuthentication no| GSSAPIAuthentication yes|" /etc/openssh/ssh_config
subst "s|^# GSSAPIDelegateCredentials no| GSSAPIDelegateCredentials yes|" /etc/openssh/ssh_config
echo "Done. Don't bother about DNS errors above"
echo "Check https://www.altlinux.org/SSSD/AD for detailed description."
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