nsswitch.conf pour 20.04
This commit is contained in:
parent
6d7b07ef62
commit
3931d7c4b4
|
@ -309,11 +309,24 @@ Auth:
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
if [ "$DISTRIB_RELEASE" = "20.04" ] || [ "$DISTRIB_RELEASE" = "20" ] ; then
|
if [ "$DISTRIB_RELEASE" = "20.04" ] || [ "$DISTRIB_RELEASE" = "20" ] ; then
|
||||||
echo "[open_ldap]
|
echo "# pre_auth-client-config # passwd: compat systemd
|
||||||
nss_passwd=passwd: files ldap
|
passwd: files ldap
|
||||||
nss_group=group: files ldap
|
# pre_auth-client-config # group: compat systemd
|
||||||
nss_shadow=shadow: files ldap
|
group: files ldap
|
||||||
nss_netgroup=netgroup: nis
|
# 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
|
" > /etc/nsswitch.conf
|
||||||
else
|
else
|
||||||
echo "[open_ldap]
|
echo "[open_ldap]
|
||||||
|
|
Loading…
Reference in New Issue