saslauthd mysql_启用MemCached的SASL认证

#首先安装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认证已经成功

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值