1.让你的extmail和ldap各自工作正常
2.新建一个ldap的schema
objectClass ( 1.3.6.1.4.1.4203.666.100.1 NAME 'officePerson'
DESC 'extmail address book'
SUP top STRUCTURAL
MUST ( cn )
MAY ( mail $ o $ telephoneNumber) )
在slapd.conf中引用:
include /你的ldap/安装目录/etc/openldap/schema/diy.schema
3.安装phpldapadmin,安装方法和phpmyadmin应该差不多,看看安装文档就会了
4.在web中打开phpldapadmin 添加一项ou=AddressBook
(Create new entry here=>Custom=>objclass选organizationalRole,cn和sn随便填)
然后点击ou=AddressBook=>Create a child entry=>Custom
objclass选officeperson
RDN填 "cn=你的名字"
然后就可以填写该名片的四个参数了
5. extmail的webmail.cf 修改以下几项
SYS_G_ABOOK_TYPE = ldap
SYS_G_ABOOK_LDAP_HOST = 你ldap服务器如果本机可以填localhost,其他填地址或域名
SYS_G_ABOOK_LDAP_BASE = ou=AddressBook, 你的ldap根路径(例

u=AddressBook,dc=extmail,dc=com)
SYS_G_ABOOK_LDAP_ROOTDN = cn=Manager,dc=extmail,dc=com(管理员路径,自己按情况更改)
SYS_G_ABOOK_LDAP_ROOTPW = 密码(明文)
SYS_G_ABOOK_LDAP_FILTER = objectClass=OfficePerson (搜索条件)
这就是全部咯!应该配起来挺简单的
