#首先安装pam-mysql}H-Gm8h~0
wget "http://prdownloads.sourceforge.net/pam-mysql/pam_mysql-0.7RC1.tar.gz"r?IwK0
./configure –with-mysql=/opt/apps_install/mysql-5.5.1751Testing软件测试网5VCw3[jq
make & make install;N5y1t$hY0
#增加一个软链接51Testing软件测试网o-g ZD V2c/H
ln -s /lib/security/pam_mysql.so /lib64/security/pam_mysql.soci6k!Eq^0
#修改saslauthd配置51Testing软件测试网].\"]T9~
MECH=pam51Testing软件测试网&@6[V(L#uFVk'q
#编辑pam.d的memcached配置51Testing软件测试网
U+Gy
C7})J
auth sufficient pam_mysql.so user=sasl passwd=saslpwd host=xxx db=dbname table=t_app_info usercolumn=appid passwdcolumn=secret crypt=0 sqllog=1 verbose=151Testing软件测试网A*J$i h?7pVV
account required pam_mysql.so user=sasl passwd=saslpwd host=xxx db=dbname table=t_app_info usercolumn=appid passwdcolumn=secret crypt=0 sqllog=1 verbose=151Testing软件测试网R#u"D\f
ns$r`
#新增加memcached的配置文件/etc/sasl2/memcached.conf0d&|H4j*GB0
pwcheck_method: saslauthdr)R&x7hG-N0
#重启saslauthd51Testing软件测试网5@.BzT~Fm6?
D
/etc/init.d/saslauthd restartDIq{JTZ;J;Xv0
#测试saslauthd认证已经成功