LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: bluefish

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

[复制链接]
 楼主| 发表于 2006-9-26 15:27:18 | 显示全部楼层
我剛按照這裏的方法試了一下,結果是成功的。
http://phorum.study-area.org/vie ... ghlight=openwebmail
但是這個方法必需要在 local 上 useradd 一個帳號才行。因為 auth_pam.pl 裏的:
my $servicename = $conf{'servicename'} || "openwebmail";
my $passwdfile_plaintext = $conf{'passwdfile_plaintext'} || "/etc/passwd";
指向的是 /etc/passwd ,而不是 openldap 上的數據,例如: userID

因為,在 Microsoft Outlook 及 Outlook Express 都可以正常收發電郵,而用 SquirrelMail 也可以從 web 介面 login 並也能正常收送電郵。這裏的 login id 拿的是 openldap 裏的 userID,而不是 /etc/passwd 裏的。所以,我還是認為就算這次 openwebmail 成功了,但,不是我想要的。 算不上真正的 openwebmail 與 openldap 整合。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-26 16:48:56 | 显示全部楼层
現在要有系統帳號相對應 openwebmail 才能正常 login
openwebmail.conf
auth_module auth_pam.pl

/var/www/cgi-bin/openwebmail/etc/defaults/auth_pam.conf
servicename openwebmail

/etc/pam.d/openwebmail
auth           required     /lib/security/pam_unix.so
auth           sufficient    /lib/security/pam_ldap.so
account      required     /lib/security/pam_unix.so
account      sufficient    /lib/security/pam_ldap.so

是不是 pam_ldap 沒有起作用?不然 pam.pl 也不會找系統帳號了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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