1、 设定使用 LDAP Authenication
vi /etc/ldap.conf
host 192.168.1.5
base dc=ldap,dc=gmshi,dc=org
URI ldap://192.168.1.5/
rootbinddn cn=admin,dc=gmshi,dc=org
bind_policy soft
pam_password crypt
vi /etc/nsswitch.conf
passwd: files ldap
shadow: files ldap
group: files ldap
vi /etc/pam.d/common-auth
auth required pam_env.so