From 3931d7c4b4b1607c57ba7a3f1608900735781781 Mon Sep 17 00:00:00 2001 From: lseys Date: Thu, 8 Oct 2020 13:22:04 +0200 Subject: [PATCH] nsswitch.conf pour 20.04 --- ubuntu-et-variantes-integrdom.sh | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/ubuntu-et-variantes-integrdom.sh b/ubuntu-et-variantes-integrdom.sh index aae4440..9d80f83 100644 --- a/ubuntu-et-variantes-integrdom.sh +++ b/ubuntu-et-variantes-integrdom.sh @@ -309,11 +309,24 @@ Auth: ######################################################################## if [ "$DISTRIB_RELEASE" = "20.04" ] || [ "$DISTRIB_RELEASE" = "20" ] ; then -echo "[open_ldap] -nss_passwd=passwd: files ldap -nss_group=group: files ldap -nss_shadow=shadow: files ldap -nss_netgroup=netgroup: nis +echo "# pre_auth-client-config # passwd: compat systemd +passwd: files ldap +# pre_auth-client-config # group: compat systemd +group: files ldap +# pre_auth-client-config # shadow: compat +shadow: files ldap +gshadow: files + +hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname +networks: files + +protocols: db files +services: db files +ethers: db files +rpc: db files + +# pre_auth-client-config # netgroup: nis +netgroup: nis " > /etc/nsswitch.conf else echo "[open_ldap]