用Dovecot电子邮件服务器的特定attrs创buildLDAP目录用户

我已经将openldap-2.4.39-8.el6.x86_64安装到我的CentOS发行版6.4(Final)机器中。 我有另一台机器,我安装了dovecot,我想为我的dovecot邮件用户执行ldap身份validation。 这是我的ldapsearch结果目前的样子:

dn: dc=mailtest,dc=example,dc=net objectClass: top objectClass: dcObject objectClass: organization o: Test-Dovecot Lab, Inc. dc: mailtest dn: ou=People,dc=mailtest,dc=example,dc=net objectClass: organizationalUnit ou: People 

这就是我configuration我的dovecot-ldap.conf.ext文件的方法:

 user_attrs = \ =user=%{ldap:mailRoutingAddress}, \ =quota_rule=*:storage=%{ldap:messageQuotaHard}k user_filter = (mailRoutingAddress=%u) pass_attrs = \ =user=%{ldap:mailRoutingAddress}, \ =password=%{ldap:userPassword}, \ =userdb_quota_rule=*:storage=%{ldap:messageQuotaHard}k pass_filter = (mailRoutingAddress=%u) iterate_attrs = mailRoutingAddress=user iterate_filter = (objectClass=messageStoreRecipient) 

我想添加用户到ldap目录中,如果可能的话包括下列属性:

 mailRoutingAddress userPassword mailRoutingHost or mailHost messageQuotaHard 

有人可以帮我如何做到这一点?