@
nodejx 这个PAM module需要你自己写。。。
我以LDAP为例。。写一个pam module,然后在/etc/nsswitch.conf 的passwd和shadow行加入你自己的认证方式
rpm -qa | grep ldap
openldap-clients-2.4.23-32.el6_4.1.x86_64
openldap-2.4.23-32.el6_4.1.x86_64
pam_ldap-185-11.el6.x86_64
nss-pam-ldapd-0.7.5-18.1.el6_4.x86_64
apr-util-ldap-1.3.9-3.el6_0.1.x86_64
cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: files ldap
shadow: files ldap
group: files ldap
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: ldap