Victor Duchovni a écrit :
On Thu, Sep 03, 2009 at 01:04:01PM +0200, Nicolas Michel wrote:

  
   In that file (ldap-localusers.cf), I set this :

     server_host = zimbra.pcsol.be
     search_base = ou=people,dc=pcsol,dc=be
     query_filter = (&(mail=%s)(accountStatus=active))
     result_atribute = uid
     bind = no

   When I test that configuration with postmap I get no output, nothing. If I
   remove the "bind = no" line, I get an error :

     postmap -q '[1...@pcsol.be' ldap:/etc/postfix/ldap-localusers.cf
     postmap: warning: dict_ldap_connect: Unable to bind to server
     ldap://zimbra.pcsol.be:389 as : 2 (Protocol error)

   Do someone have an idea??
    

Try adding:

	version = 3

to the LDAP .cf file.

  
I think we are on a good way. I don't have any error anyway. But my postmap command give me back no output.
So I summarize. I have now that configuration into my ldap-localusers.cf :
server_host = zimbra.pcsol.be
search_base = ou=people,dc=pcsol,dc=be
query_filter = (&(mail=%s)(zimbraMailStatus=enabled))
result_atribute = uid
version = 3
Here is an entry of my ldap server (got with ldapsearch) :
# info, people, pcsol.be
dn: uid=info,ou=people,dc=pcsol,dc=be
zimbraId: 96743ab5-9494-4877-bf69-56a83e268a1f
zimbraMailStatus: enabled
mail: i...@pcsol.be
zimbraMailAlias: i...@pcsol.be
uid: info
objectClass: zimbraDistributionList
objectClass: zimbraMailRecipient
zimbraMailForwardingAddress: celine.clai...@pcsol.be
zimbraMailForwardingAddress: didier.lecle...@pcsol.be
So I try typing :
postmap -q 'info' ldap:/etc/postfix/ldap-localusers.cf
But it gives me no outuput.

An idea??

Thx,
nm


Reply via email to