On Mon, Aug 19, 2013 at 06:25:24PM +0100, Rowland Penny wrote:

> query_filter    = (&(objectclass=group)(mail=%s))
> leaf_result_attribute = otherMailbox
> special_result_attribute = member

> I have added a couple of otherMailbox attributes to a user called
> fred, one is [email protected], the other is [email protected].
> I then added fred to the example.com group.

When you specify a multi-valued result attribute (or leaf or terminal
result attribute) each value will be part of the result.

> I then ran this command:
> 
> postmap -q [email protected] 
> ldap:/etc/postfix/ldap/ad_virtual_group_maps.cf
> 
> This is where the problem comes in, I expected to just get back
> [email protected], but instead I get [email protected] and
> [email protected]

As expected.  If you want a single value back, use a single-valued
attribute.

-- 
        Viktor.

Reply via email to