LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1672|回复: 11

请教关于 OpenLDAP + Openwebmail 整合的问题

[复制链接]
发表于 2006-9-23 01:51:52 | 显示全部楼层 |阅读模式
OS: RHEL ES4
RAM: 512M
CPU: P42.0
HD: 80G
HostName: itcproxy.com

postfix-2.3.2 , cyrus-imap-2.2.12 , cyrus-sals-2.1.22 , openldap-stable-20060823, Openwebmail-2.52

经过几天的苦装,基于postfix的邮件服务器终于可以在 outlook 下进行电邮收发了.今天开始搞 Web 介面的,却又碰到了问题,所以还是来这里问问各位了.

在Web介面下,Squirrelmail 与 Openldap 整合得很成功,也很方便. 但是到了Openwebmail 时却发现它与 openldap 无法正常整合,老是提示:no such user.奇了怪了.
在网上找了一些资料来看,发现写文章的人用的是 redhat linux 8.0的,虽然旧了点,但还是按上面的方法来试了,把 auth_ldap.pl 改成 auth_pam.pl ,结果还是一样.
感觉中 openwebmail 跟 openldap 之的联系有问题,但是是在哪里出了问题就不知道了.

不知道坛里的前辈们谁曾经成功做过 openldap与openwebmail 整合的? 能否帮小弟解决一下这个问题?

谢谢大家!
发表于 2006-9-23 02:08:38 | 显示全部楼层
PAM 也认证出错?贴 debug 看看?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-23 02:21:24 | 显示全部楼层
版主请稍等,我现在连进公司的网络拿LOG
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-23 02:33:30 | 显示全部楼层
/var/log/openwebmail.log
Fri Sep 22 15:53:43 2006 - [15681] (192.168.16.137)
peter_zhao - update
/var/www/cgi-bin/openwebmail/etc/maps/etc.mail.virtusertable
Fri Sep 22 15:53:43 2006 - [15681] (192.168.16.137)
peter_zhao - userinfo error - auth_ldap.pl, ret -4,User peter_zhao doesn't exist
Fri Sep 22 15:53:53 2006 - [15681] (192.168.16.137)
peter_zhao - login error - no such user -loginname=peter_zhao
Fri Sep 22 15:56:15 2006 - [15751] (192.168.16.137)
peter_zhao - userinfo error - auth_ldap.pl, ret -4,User peter_zhao doesn't exist
Fri Sep 22 15:56:25 2006 - [15751] (192.168.16.137)
peter_zhao - login error - no such user -loginname=peter_zhao
Fri Sep 22 15:59:10 2006 - [15786] (192.168.16.137)
peter_zhao - userinfo error - auth_ldap.pl, ret -4,User peter_zhao doesn't exist
Fri Sep 22 15:59:20 2006 - [15786] (192.168.16.137)
peter_zhao - login error - no such user -loginname=peter_zhao
Fri Sep 22 16:01:43 2006 - [15845] (192.168.16.137)
peter_zhao - userinfo error - auth_ldap.pl, ret -4,User peter_zhao doesn't exist
Fri Sep 22 16:01:53 2006 - [15845] (192.168.16.137)
peter_zhao - login error - no such user -loginname=peter_zhao
Fri Sep 22 16:08:32 2006 - [15877] (192.168.16.137)
peter_zhao - userinfo error - auth_pam.pl, ret -4,User peter_zhao doesn't exist
Fri Sep 22 16:08:42 2006 - [15877] (192.168.16.137)
peter_zhao - login error - no such user -loginname=peter_zhao
Fri Sep 22 16:08:52 2006 - [15879] (192.168.16.137)
peter_zhao - userinfo error - auth_pam.pl, ret -4,User peter_zhao doesn't exist
Fri Sep 22 16:09:02 2006 - [15879] (192.168.16.137)
peter_zhao - login error - no such user -loginname=peter_zhao
Fri Sep 22 16:09:17 2006 - [15881] (192.168.16.137)
peter.zhao - userinfo error - auth_pam.pl, ret -4,User peter.zhao doesn't exist
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-23 02:37:29 | 显示全部楼层
/etc/pam.d/openwebmail

auth            sufficient     /lib/security/pam_ldap.so
auth            required      /lib/security/pam_unix_auth.so use_first_pass
account         sufficient     /lib/security/pam_ldap.so
account         required       /lib/security/pam_unix_acct.so
password        required      /lib/security/pam_cracklib.so retyr=3
password        sufficient     /lib/security/pam_ldap.so
password        required       /lib/security/pam_pwdb.so tyr_first_pass
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-23 02:40:13 | 显示全部楼层
/var/www/cgi-bin/openwebmail/etc/openwebmail.conf

auth_module                   auth_pam.pl
回复 支持 反对

使用道具 举报

发表于 2006-9-23 04:20:55 | 显示全部楼层
要的是 auth 的 log,不是你的 mail log 噢。。。:)。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-23 10:26:47 | 显示全部楼层
来了,不好意思哦版主!

/var/log/auth.log
Sep 18 17:49:17 sz-mail02 su(pam_unix)[4565]: session opened for user cyrus by root(uid=0)
Sep 18 17:49:21 sz-mail02 imap[4583]: sql_select option missing
Sep 18 17:49:21 sz-mail02 imap[4583]: auxpropfunc error no mechanism available
Sep 18 17:49:21 sz-mail02 imap[4583]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Sep 18 17:49:21 sz-mail02 perl: No worthy mechs found
Sep 18 17:49:51 sz-mail02 su(pam_unix)[4565]: session closed for user cyrus
Sep 18 17:50:53 sz-mail02 sshd(pam_unix)[4595]: session opened for user root by root(uid=0)
Sep 18 18:05:36 sz-mail02 saslauthd[4664]: detach_tty : could not lock pid file var/saslauthd/saslauthd.pid: Resource temporarily unavailable
Sep 18 18:05:36 sz-mail02 saslauthd[4663]: detach_tty : Cannot start saslauthd
Sep 18 18:05:36 sz-mail02 saslauthd[4663]: detach_tty : Another instance of saslauthd is currently running
Sep 18 18:23:12 sz-mail02 saslauthd[4229]: server_exit : master exited: 4229
Sep 18 18:23:50 sz-mail02 slapd[4732]: sql_select option missing
Sep 18 18:23:50 sz-mail02 slapd[4732]: auxpropfunc error no mechanism available
Sep 18 18:23:50 sz-mail02 slapd[4732]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Sep 18 18:23:52 sz-mail02 saslauthd[4787]: detach_tty : master pid is: 4787
Sep 18 18:23:52 sz-mail02 saslauthd[4787]: ipc_init : listening on socket: /var/saslauthd/mux
Sep 18 18:46:38 sz-mail02 saslauthd[4788]: Authentication failed for cyrus: Bind to ldap server failed (invalid user/password or insufficient access) (-7)
Sep 18 18:46:38 sz-mail02 saslauthd[4788]: do_auth : auth failure: [user=cyrus] [service=imap] [realm=] [mech=ldap] [reason=Unknown]
Sep 18 18:46:53 sz-mail02 saslauthd[4789]: Authentication failed for cyrus: Bind to ldap server failed (invalid user/password or insufficient access) (-7)
Sep 18 18:46:53 sz-mail02 saslauthd[4789]: do_auth : auth failure: [user=cyrus] [service=imap] [realm=] [mech=ldap] [reason=Unknown]
Sep 18 18:47:58 sz-mail02 slapd[16206]: sql_select option missing
Sep 18 18:47:58 sz-mail02 slapd[16206]: auxpropfunc error no mechanism available "/var/log/auth.log" 1274L, 111864C
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-25 09:39:42 | 显示全部楼层
早上好呀版主,這兩天好像沒有看到你來。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-26 00:00:46 | 显示全部楼层
没有人来解答吗?
帮我顶一下吧.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表