On Mon, Sep 29, 2008 at 01:59:18PM +0200, Pierangelo Masarati wrote:
Seems to work here. What version are you using? Can you post
configuration and related entries?
I have the problem with OpenLDAP-2.4.11
Config:
overlay dynlist
dynlist-attrset ExMailAddress memberURL mailbox:revalias
Searched entry:
dn: mailAddress=foo-employee(a)example.net,o=ex
objectClass: exMailAddress
mailAddress: foo-employee(a)example.net
memberURL: ldap:///o=ex,revalias?sub?(&(objectClass=exPerson)(employer=foo))
Expantion looks up objects like this:
dn: uid=jdoe,o=ex
objectClass: exPerson
uid: jdoe
revalias: john.doe(a)example.net
employer: foo
And produces output like this:
dn: mailAddress=foo-employee(a)example.net,o=ex
objectClass: exMailAddress
mailAddress: foo-employee(a)example.net
mailbox: john.doe(a)example.net
mailbox: joe.luser(a)example.net
mailbox: emmanuel.dreyfus(a)example.net
memberURL: ldap:///o=ex,revalias?sub?(&(objectClass=exPerson)(employer=foo))
It is intersting to note that if I include revalias in the querried
attribute set, I get dynlist expantion:
$ ldapsearch mailAddress=foo-employee@example mailbox revalias
<expantion works>
$ ldapsearch mailAddress=foo-employee@example mailbox
<expantion does not work>
--
Emmanuel Dreyfus
manu(a)netbsd.org