On Fri, Sep 04, 2009 at 08:55:36AM +0200, Nicolas Michel wrote:

>    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.

The right query is:

    postmap -q 'i...@pcsol.be' ldap:/etc/postfix/ldap-localusers.cf

since the "mail" attribute used in the search filter is stored in LDAP
with a domain part. Alternatively, you can change the query to match
just the username, this depends on where Postfix will be using this table...

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to