Update ADconnection.sh

This commit is contained in:
PierreGoude 2016-12-13 12:04:11 +01:00 committed by GitHub
parent 87874f825d
commit 743efda243

View File

@ -78,7 +78,7 @@ echo "in SSH allow file..."
sudo cat /etc/ssh/login.group.allowed | grep $myhost sudo cat /etc/ssh/login.group.allowed | grep $myhost
echo " if this is wrong DO NOT REBOOT and contact sysadmin" echo " if this is wrong DO NOT REBOOT and contact sysadmin"
exec sudo -u root /bin/sh - <<eof exec sudo -u root /bin/sh - <<eof
sed -i -e 's/#NAME_REGEX="^[a-z][-a-z0-9_]*\$"/NAME_REGEX="^[a-z][-a-z0-9_]*\$"/g' /etc/adduser.conf echo "default-home = /home/%U" > /etc/sssd/sssd.conf
sed -i -e 's/use_fully_qualified_names = True/use_fully_qualified_names = False/g' /etc/sssd/sssd.conf sed -i -e 's/use_fully_qualified_names = True/use_fully_qualified_names = False/g' /etc/sssd/sssd.conf
eof eof
} }