給你一個學習經驗 如有任何問題 先看 原廠網站 一般可以解決你 大部分的疑問
關於你的問題 答案就在
http://turtle.ee.ncku.edu.tw/openwebmail/doc/faq.txt中的
Q: How can I use LDAP to authenticate user in openwebmail?
A: You have 2 ways to do this:
1. use the auth_ldap.pl written by Ivan Cerrato, pengus.AT.libero.it
2. use auth_pam module and let pam to talk with ldap server.
Below is an article posted at sourceforge by "ispman.AT.user.sourceforge.net
(
http://sourceforge.net/forum/message.php?msg_id=1462314)
---------------- begin ----------------
I hope this is useful to someone:
I was able to get openwebmail to authenticate using ldap/pam on a system
with Redhat 7.1, pam_ldap135, and OpenLDAP 2.0.18.
In openwebmail.conf ~
auth_module auth_pam.pl
In auth_pam.pl ~
my $pam_servicename="openwebmail";
my $pam_passwdfile="/etc/passwd";
vi /etc/pam.d/openwebmail:
#%PAM-1.0
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
That's it. LDAP users will authenticate with the pam_ldap module and
system users with pam_unix.
---------------- end ----------------