mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Active directory Join script for Ubuntu, Debian, CentOS and Raspberry Pi with built in failchcheck and debugmode for Ubuntu. "The most advanced AD join script on GITHUB"
I the latest update i removed sss from sudoers file in /etc/nsswitch.conf This has the effect of avoiding re-authentication against the AD for every new interactive shell. Instead, cached credentials from the first login will be used.
This commit is contained in:
parent
ac53ff2551
commit
693a90f0cc
@ -229,6 +229,7 @@ esac
|
||||
sed -i -e 's/fallback_homedir = \/home\/%u@%d/#fallback_homedir = \/home\/%u@%d/g' /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/access_provider = ad/access_provider = simple/g' /etc/sssd/sssd.conf
|
||||
sed -i -e 's/sudoers: files sss/sudoers: files/g' /etc/nsswitch.conf
|
||||
echo "override_homedir = /home/%d/%u" | sudo tee -a /etc/sssd/sssd.conf
|
||||
cat /etc/sssd/sssd.conf | grep -i override
|
||||
sudo service sssd restart
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user