OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
use results of one ldap query in a subsequent one

From: Andreas Hasenack (ahasenackterra.com.br)
Date: Thu Aug 02 2007 - 14:19:52 CDT


I want to send email to all members of a posixGroup. The catch is that
this is a rfc2307 group, i.e., members are just names and not DNs:

cn=foo,ou=group,dc=example,dc=com
cn: foo
objectClass: posixGroup
memberUid: user1
memberUid: user2
memberUid: user3
...

uid=user1,ou=people,dc=example,dc=com
uid: user1
objectClass: inetOrgPerson
mail: user1test.com
...

There is no DN pointing back to the user entry, nor is there something
in the user entry hinting to which groups the user is part of, so I
can't use special_result_attribute.

With the above, is there a way I could have postfix, after getting the
member list, to a subsequent query on each user to fetch their mail
attribute? Or some other solution?