update debian realm command

This commit is contained in:
2021-12-19 23:14:28 -05:00
parent 06e85fc1d5
commit 2fe5c2dfc7

View File

@@ -26,7 +26,7 @@ echo "os-version = ${OS_VER}" >> /etc/realmd.conf
# join the computer to the domain
if [ ${OS} == "Debian" ] || [ ${OS} == "Ubuntu" ]; then
echo ${password} | realm join -U ${username} --install=/ ${domain}
echo ${password} | realm join --user=${username} --computer-ou=OU=Servers --install=/ ${domain}
echo " " >> /etc/pam.d/common-session
echo "#oddjob-mkhomedir manual entry" >> /etc/pam.d/common-session
echo "session optional pam_oddjob_mkhomedir.so skel=/etc/skel/ umask=0022" >> /etc/pam.d/common-session