On Sun, Oct 26, 2008 at 1:00 PM, Michael Pasqualone <[EMAIL PROTECTED]> wrote:
> No, LDAP is fine. It's simply returning a list of UID's assigned to the
> user, i.e. testuser, and test.
>
> What I need to figure out is how to tell postfix by the result_format? to
> only return 1 entry when that entry is found.
>
> I.e. Incoming email to [EMAIL PROTECTED], postfix/ldap looks up our
> directory service and sees that uid=testuser is within the directory as well
> as uid=test, instead of returning both uid's I only want the postfix/ldap
> query to return the uid originally sent too it, i.e. testuser.
>
> Does that make sense?
>
> Regards,
> Michael Pasqualone
>

In this case result_attribute must be unique.

*Example* for you:

dn: uid=rei,o=Root
uid: rei
uid: rei2
uid: rei3
mail: [EMAIL PROTECTED]

ldap-aliases.cf contains:
     server_host = directory.example.com
     search_base = o=Root
     version = 3
     query_filter = (uid=%u)
     result_attribute = mail
     bind = no

In this case result_attribute must be *unique*.

-- 
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net

Reply via email to