changes to allow debian to work with realmd

This commit is contained in:
2020-07-21 20:44:54 -04:00
parent 755d0964eb
commit 1079198633

View File

@@ -22,12 +22,15 @@ fi
echo "[active-directory]" > /etc/realmd.conf
echo "os-name = ${OS}" >> /etc/realmd.conf
echo "os-version = ${OS_VER}" >> /etc/realmd.conf
echo "[service]" >> /etc/realmd.conf
echo "automatic-install = no" >> /etc/realmd.conf
# join the computer to the domain
echo ${password} | realm join -U ${username} ${domain}
if [ ${OS} == "Debian" ] || [ ${OS} == "Ubuntu" ]; then
echo ${password} | realm join -U ${username} --install=/ ${domain}
elif [ "${OS}" == "CentOS" ]; then
echo ${password} | realm join -U ${username} ${domain}
fi
# set the sssd options
# don't require the full domain for the usernames