Re: Postfix group lookup against Samba4 AD

2013-08-25 Thread Rowland Penny
On 24/08/13 17:35, Viktor Dukhovni wrote: On Sat, Aug 24, 2013 at 12:13:46PM +0100, Rowland Penny wrote: The search was looking up a group with a particular address. It is a mistake to impute any other meaning to the domain part of the group email address. Why is it a mistake? Your mistake i

Re: Postfix group lookup against Samba4 AD

2013-08-24 Thread Viktor Dukhovni
On Sat, Aug 24, 2013 at 12:13:46PM +0100, Rowland Penny wrote: > >The search was looking up a group with a particular address. It > >is a mistake to impute any other meaning to the domain part of the > >group email address. > > Why is it a mistake? Your mistake is to use objects with multiple e

Re: Postfix group lookup against Samba4 AD

2013-08-24 Thread Rowland Penny
On 24/08/13 03:42, Viktor Dukhovni wrote: On Fri, Aug 23, 2013 at 03:01:52PM +0100, Rowland Penny wrote: dn: CN=albert,CN=Users,DC=example,DC=com otherMailbox: alb...@example.com otherMailbox: alb...@domain1.com otherMailbox: alb...@domain2.com The only problem that I have found is, any LDAP s

Re: Postfix group lookup against Samba4 AD

2013-08-23 Thread Viktor Dukhovni
On Fri, Aug 23, 2013 at 03:01:52PM +0100, Rowland Penny wrote: > dn: CN=albert,CN=Users,DC=example,DC=com > otherMailbox: alb...@example.com > otherMailbox: alb...@domain1.com > otherMailbox: alb...@domain2.com > > The only problem that I have found is, any LDAP search with > 'result_attribute =

Re: Postfix group lookup against Samba4 AD

2013-08-23 Thread Rowland Penny
On 19/08/13 23:15, Viktor Dukhovni wrote: On Mon, Aug 19, 2013 at 10:32:27PM +0100, Rowland Penny wrote: If you want to return a particular single address for each user, you need to select a result attribute that contains *only* that address. That is what I was trying to do, do a search of a g

Re: Postfix group lookup against Samba4 AD

2013-08-19 Thread Viktor Dukhovni
On Mon, Aug 19, 2013 at 10:32:27PM +0100, Rowland Penny wrote: > >If you want to return > >a particular single address for each user, you need to select a > >result attribute that contains *only* that address. > > That is what I was trying to do, do a search of a group, get its > members and retu

Re: Postfix group lookup against Samba4 AD

2013-08-19 Thread Rowland Penny
On 19/08/13 22:14, Viktor Dukhovni wrote: On Mon, Aug 19, 2013 at 10:08:18PM +0100, Rowland Penny wrote: There is no such thing as "the relevant email addresses", all addresses selected by the filter and result attributes are equally relevant. When I said "the relevant email addresses", I mean

Re: Postfix group lookup against Samba4 AD

2013-08-19 Thread Viktor Dukhovni
On Mon, Aug 19, 2013 at 10:08:18PM +0100, Rowland Penny wrote: > >There is no such thing as "the relevant email addresses", all > >addresses selected by the filter and result attributes are equally > >relevant. > > When I said "the relevant email addresses", I meant, get from the > group members

Re: Postfix group lookup against Samba4 AD

2013-08-19 Thread Rowland Penny
On 19/08/13 20:11, Viktor Dukhovni wrote: On Mon, Aug 19, 2013 at 07:51:50PM +0100, Rowland Penny wrote: On 19/08/13 19:28, Viktor Dukhovni wrote: On Mon, Aug 19, 2013 at 06:25:24PM +0100, Rowland Penny wrote: query_filter= (&(objectclass=group)(mail=%s)) leaf_result_attribute = otherMa

Re: Postfix group lookup against Samba4 AD

2013-08-19 Thread Viktor Dukhovni
On Mon, Aug 19, 2013 at 07:51:50PM +0100, Rowland Penny wrote: > On 19/08/13 19:28, Viktor Dukhovni wrote: > > >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_attri

Re: Postfix group lookup against Samba4 AD

2013-08-19 Thread Rowland Penny
On 19/08/13 19:28, Viktor Dukhovni wrote: 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 fre

Re: Postfix group lookup against Samba4 AD

2013-08-19 Thread Viktor Dukhovni
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 f...@example.com, the ot

Postfix group lookup against Samba4 AD

2013-08-19 Thread Rowland Penny
Hello, I am trying to setup a postfix mailserver using a Samba4 AD server as the LDAP source and I am struggling with groups. I have created an OU called domains and then created a mailgroup called example.com in this OU, I then added added a mail attribute mailgr...@example.com to the group