nsswitch.conf pour 20.04

This commit is contained in:
lseys 2020-10-08 13:22:04 +02:00
parent 6d7b07ef62
commit 3931d7c4b4

View File

@ -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]