[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapo-dynlist improvement



Emmanuel Dreyfus wrote:
Hello

I'd like to use the slapo-dynlist overlay, to generate an automatically
updated list of attributes onan object. My problem is that I want the
attribute name to be different than the original:

I have

dn: cn=list,o=home
objectClass: groupOfURLs
cn: list
memberURL: ldap:///o=home?foo?sub?(objectClass=fooClass)

In slapd.conf:
overlay         dynlist
dynlist-attrset groupOfURLs memberURL

A search on cn=list,o=home gives me:
dn: cn=list,o=home
objectClass: groupOfURLs
cn: list
foo: value1
foo: value2
foo; value3
...

But I would like it to be displayed that way:
dn: cn=list,o=home
objectClass: groupOfURLs
cn: list
bar: value1
bar: value2
bar; value3
...

It seems this is not possible with current software (please correct me
if I'm wrong).

You can already do this, if I understand what you are trying to do:

dynlist-attrset groupOfURLs memberURL foo

and miss out foo from:

memberURL: ldap:///o=home??sub?(objectClass=fooClass)

See the man page:

"In this case, the <attrs> portion of the URI must be absent,and the DNs of all the entries resulting from the expansion of the URI are listed as values of this attribute."

Is that what you are after?