[Dovecot] LDAP filters

Tomasz K Jarzynka tomee at genesilico.pl
Mon Sep 8 15:45:55 EEST 2008


Quoting dovecot-request at dovecot.org:

> Message: 9
> Date: Mon, 08 Sep 2008 12:33:29 +0400
> From: Proskurin Kirill <k.proskurin at fxclub.org>
> Subject: [Dovecot] LDAP filters
> To: Dovecot Mailing List <dovecot at dovecot.org>
> Message-ID: <48C4E359.7090602 at fxclub.org>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hello all.
>
> I'm have this problem:
>
> I'm want auth users by "uid" filed but this filed uniq only in one LDAP
> container. So im what to tell dovecot were to look some "uid" by "mail"
> filed of this user.
>
> Can im do this:
>
> pass_filter = (&(objectClass=mailUser)(mail=*@%d)(uid=%n))
>
> Will this construction work?

Why not (&(objectClass=mailUser)(mail=%u)(uid=%n)) ?

PS. You really should consider solving this is a more elegant way ;)

-- 
Tomasz Krzysztof Jarzynka  /  mob. +48 601 706 601  / HANDLE: TJ950-RIPE
Network Information Systems Administrator / tomee(at)genesilico(d-o-t)pl
Laboratory of Bioinformatics and Protein Engineering | www.genesilico.pl
International Institute of Molecular and Cell Biology | www.iimcb.gov.pl



More information about the dovecot mailing list