免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5153 | 回复: 2
打印 上一主题 下一主题

[ldap] saslauthd 配置后端使用ldap服务器的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-08-17 15:09 |只看该作者 |倒序浏览
根据官方文档, 我先配置了/usr/lib64/sasl2/slapd.conf
mech_list: plain
pwcheck_method: saslauthd
saslauthd_path: /var/run/sasl2/mux

然后配置了/etc/saslauthd.conf
ldap_servers: ldap://lcoalhost

ldap_search_base: ou=People,ou=test,o=com"
ldap_filter: (uid=%u)

ldap_bind_dn: cn=admin,ou=SystemUsers,o=com
ldap_password: admin

然后启动saslauthd 在debug模式下

然后测试验证:
testsaslauthd -u user -p wrongpassword  

saslauthd[21563] :rel_accept_lock : released accept lock
saslauthd[21564] :get_accept_lock : acquired accept lock
saslauthd[21563] :do_auth         : auth failure: [user=user] [service=imap] [realm=] [mech=ldap] [reason=Unknown]
saslauthd[21563] :do_request      : response: NO


不管换什么用户都是错误的。

而且为什么“service=imap”?

各位大侠帮忙啊

论坛徽章:
0
2 [报告]
发表于 2011-08-17 15:22 |只看该作者
还有/etc/sysconfig/saslauthd 的配置
# Directory in which to place saslauthd's listening socket, pid file, and so
# on.  This directory must already exist.
SOCKETDIR=/var/run/saslauthd

# Mechanism to use when checking passwords.  Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled with the ablity to use.
#MECH=pam
MECH=ldap

# Additional flags to pass to saslauthd on the command line.  See saslauthd(
# for the list of accepted flags.
FLAGS=

论坛徽章:
0
3 [报告]
发表于 2011-08-17 18:42 |只看该作者
根据官方文档, 我先配置了/usr/lib64/sasl2/slapd.conf
mech_list: plain
pwcheck_method: saslauthd
s ...
mahao_boy 发表于 2011-08-17 15:09



   

对不起观众啊,这句写错了
ldap_search_base: ou=People,ou=test,o=com"


多了一个引号。
浪费了我一下午时间。

呵呵

大家引以为戒啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP