奇怪,上周发的关系Extmail的博文,今天上去竟然被删除了,不知道为什么?从来没有过的,如果CU不说明这样还删帖,以后就移位置了。
凭记忆,写一下流程吧?
1,增加LDAP Schema
[root@mail ~]# more /etc/openldap/schema/officeperson.schema
objectClass ( 1.3.6.1.4.1.4203.666.100.1
NAME ( 'officePerson' )
SUP top STRUCTURAL
DESC 'extmail address book'
MUST ( cn )
MAY ( mail $ o $ telephoneNumber))
[root@mail ~]#
2,修改slapd.conf
[root@mail ~]# more /etc/openldap/slapd.conf|grep "include"
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/extmail.schema
include /etc/openldap/schema/officeperson.schema
[root@mail ~]#
3,确认Extmail配置文件webmail.cf中是否支持LDAP
[root@mail ~]# more /var/www/extsuite/extmail/webmail.cf | grep 'ABOOK'
SYS_G_ABOOK_TYPE = ldap
# if ldap, all relate parameters should prefix as SYS_G_ABOOK_LDAP
SYS_G_ABOOK_LDAP_HOST = localhost
SYS_G_ABOOK_LDAP_BASE = ou=AddressBook,dc=wht.com
SYS_G_ABOOK_LDAP_ROOTDN = cn=Manager,dc=wht.com
SYS_G_ABOOK_LDAP_ROOTPW = postfix
SYS_G_ABOOK_LDAP_FILTER = objectClass=OfficePerson
# if file, all relate parameters should prefix as SYS_G_ABOOK_FILE
SYS_G_ABOOK_FILE_PATH = /var/www/extsuite/extmail/globabook.cf
SYS_G_ABOOK_FILE_LOCK = 1
SYS_G_ABOOK_FILE_CONVERT = 0
SYS_G_ABOOK_FILE_CHARSET = utf-8
[root@mail ~]#
3,重启LDAP服务
#service ldap restart
4,用PHPLDAPADMIN在增加OU=AddressBook,及添加第一个联系人
打开phpldapadmin 添加一项ou=AddressBook(Create new entry here=>Custom=>objclass选organizationalRole,cn和sn随便填)(选organizationalRole纯属个人喜好,其实有很多都能选,只是作为上一层目录随便便可)
然后点击ou=AddressBook=>Create a child entry=>Custom=>objclass选officeperson,然后那个表Required Attributes为必填,cn是你的名字,灰色那些栏可以选择,挑一个mail出来添上,然后你的extmail就可以查询到该全局地址本了...
阅读(1479) | 评论(0) | 转发(0) |