On Sun, Mar 17, 2013 at 11:31:31AM +0100, Patrick Lists wrote:
> Hi Victor,
>
> On 03/16/2013 11:25 PM, Viktor Dukhovni wrote:
> [snip]
> >I've always avoided wildcard rewrites with LDAP, do the rewrite
> >only with actual valid user addresses.
>
> Ok.
>
> >>@domainA.org @domainB.org
> >
> >I don't recall whether "%d" works with "@domain" input keys. I
> >would have guessed it does, but perhaps I overlooked something.
> >You really should not do this. Instead take the high road:
> >
> > query_filter = mailDeliveryAddress=%s
> > result = mail
>
> Will try that.
Keep in mind that there are many different LDAP email schemas and
yours may keep the additional email addresses of each user in an
differently named attribute. The "mailDeliveryAddress" attribute
is taken from one popular schema (assuming I remembered the attribute
name correctly).
--
Viktor.