simplification des autorisations de connexion "utilisateurs du domaine"

This commit is contained in:
2024-12-02 11:02:35 +01:00
parent f6e4f7b60a
commit 9001ee016c
2 changed files with 10 additions and 3 deletions

View File

@@ -24,7 +24,6 @@ folder_file="/etc/pam.d/common-session"
samba_file="/etc/samba/smb.conf"
sssd_file="/etc/sssd/sssd.conf"
domain="operis.champlan"
Allowed_GG=(GRP_ADM_POSTE GRP_ADM_DOM GDL_Orvault GDL_LaRéunion GDL_Grenoble GDL_Champlan GDL_Bordeaux "Tous les sites")
local_admin="operis"
GG_admin="grp_adm_poste"
cron_file="/etc/crontab"
@@ -107,8 +106,9 @@ chmod 600 /etc/sssd/sssd.conf
}
func_allowedgg(){
for GG in $Allowed_GG; do
realm permit -g $GG >> /dev/null 2>> $log_erreurs
realm permit -g utilisateurs\ du\ domaine@operis.champlan >> /dev/null 2>> $log_erreurs
realm permit -g GRP_ADM_POSTE >> /dev/null 2>> $log_erreurs
realm permit -g GRP_ADM_DOM >> /dev/null 2>> $log_erreurs
done
}

View File

@@ -31,6 +31,13 @@ func_outils_devs(){
apt install -y git git-extras gitk meld jq yq fd-find ripgrep parcellite pandoc cloc fzf shellcheck dconf-cli gnome-tweaks gnome-shell-extensions gnome-shell-extension-manager inotify-tools shutter sshfs terminator uuid wl-clipboard flatpak apache2 nginx make build-essential libssl-dev zlib1g-dev libreadline-dev libbz2-dev libsqlite3-dev llvm libncurses5-dev php keepass2 pass
}
func_Chrome(){
curl -fSsL https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | tee /usr/share/keyrings/google-chrome.gpg >> /dev/null
echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | tee /etc/apt/sources.list.d/google-chrome.list
apt update
apt install -y google-chrome-stable
}
func_vscode(){
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg