I'm trying to test a new .cf file that uses ldap with postmap, and I noticed that it fails to actually honor the fields set in the file. I'm going off of the documentation found at <http://www.postfix.org/LDAP_README.html#example_group>.

[zim...@freelancer conf]$ postmap -q all_us...@zimbra.com ldap:ldap-groups.cf postmap: warning: dict_ldap_connect: Unable to bind to server ldap://localhost:389 as : -1 (Can't contact LDAP server)

I'm not sure why it is trying to contact localhost. I very specifically set the server host in the .cf file:

[zim...@freelancer conf]$ more ldap-groups.cf
server_host = ldap://freelancer.lab.zimbra.com:389
server_port = 389
search_base =
query_filter = mail=%s
result_attribute = zimbraMailDeliveryAddress
special_result_attribute = member
start_tls = yes
tls_ca_cert_dir = /opt/zimbra/conf/ca
bind = yes
bind_dn = uid=zmpostfix,cn=appaccts,cn=zimbra
bind_pw = xxxxxxxxxxx
timeout = 30

Is there something I'm missing here about getting postmap to use the parameters I set?

Thanks!

--Quanah

--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Reply via email to