Hello
I have an object class that triggers slapo-dynlist expantion. It works very well if I request the whole object:
$ ldapsearch uid=foo <here I get the object with dynlist expanded>
But if I request an attribut set that contains the attribute to be expanded (here mail), it does not work: $ ldapsearch uid=foo mail <dynlist not expanded>
Adding memberURL does not help: $ ldapsearch uid=foo memberURL <dynlist not expanded>
Is it on purpose? Is there a work around? It is troublesome since the client application does ask for a set of attribute...
Emmanuel Dreyfus wrote:
Hello
I have an object class that triggers slapo-dynlist expantion. It works very well if I request the whole object:
$ ldapsearch uid=foo
<here I get the object with dynlist expanded>
But if I request an attribut set that contains the attribute to be expanded (here mail), it does not work: $ ldapsearch uid=foo mail
<dynlist not expanded>
Adding memberURL does not help: $ ldapsearch uid=foo memberURL
<dynlist not expanded>
Is it on purpose? Is there a work around? It is troublesome since the client application does ask for a set of attribute...
Seems to work here. What version are you using? Can you post configuration and related entries?
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
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@example.net,o=ex objectClass: exMailAddress mailAddress: foo-employee@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@example.net employer: foo
And produces output like this: dn: mailAddress=foo-employee@example.net,o=ex objectClass: exMailAddress mailAddress: foo-employee@example.net mailbox: john.doe@example.net mailbox: joe.luser@example.net mailbox: emmanuel.dreyfus@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 wrote:
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
OK, the mailbox:revalias is the culprit. I suggest you file an ITS.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
Emmanuel Dreyfus wrote:
On Mon, Sep 29, 2008 at 02:45:24PM +0200, Pierangelo Masarati wrote:
OK, the mailbox:revalias is the culprit. I suggest you file an ITS.
Well, since I am the one that implemented this feature, I'll rather fix the problem on my own :-)
The ITS is for tracking, to notify the issue and its fix in the CHANGES, so you should file it anyway.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
Emmanuel Dreyfus wrote:
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@example.net,o=ex objectClass: exMailAddress mailAddress: foo-employee@example.net memberURL: ldap:///o=ex,revalias?sub?(&(objectClass=exPerson)(employer=foo))
This URI is incorrect; the DN portion should fail normalization, and the whole URI should fail parsing, since a "?" is missing. I assume you mean
memberURL: ldap:///o=ex?revalias?sub?(&(objectClass=exPerson)(employer=foo))
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
On Mon, Sep 29, 2008 at 04:47:57PM +0200, Pierangelo Masarati wrote:
This URI is incorrect; the DN portion should fail normalization, and the whole URI should fail parsing, since a "?" is missing. I assume you mean
memberURL: ldap:///o=ex?revalias?sub?(&(objectClass=exPerson)(employer=foo))
Indeed. The thing was edited.
openldap-software@openldap.org