ubuntu 18.04
apt install ldap-auth-client nscd
auth-client-config -t nss -p lac_ldap
ubuntu 20.04
apt install ldap-auth-client nscd
sed -E 's/^passwd:\s+.*/passwd: files systemd ldap/g' -i /etc/nsswitch.conf
sed -E 's/^group:\s+.*/group: files systemd ldap/g' -i /etc/nsswitch.conf
sed -E 's/^shadow:\s+.*/shadow: files systemd ldap/g' -i /etc/nsswitch.conf
centos 7
yum install nss-pam-ldapd
authconfig --enableldap --enableldapauth --update
rocky 9
yum install sssd-ldap sssd-ad sssd-client \
sssd-common sssd-common-pac \
sssd-krb5 sssd-krb5-common