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

slapo-dynlist improvement



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). I propose a contribution to slapo-dynlist, to include
attribute name remapping capability. In the config file, this qould be
configured by extending the member-ad parameter:

overlay         dynlist
dynlist-attrset groupOfURLs memberURL foo:bar

Of course, for backward compatibility, 
dynlist-attrset groupOfURLs memberURL foo
would still be equivalent to 
dynlist-attrset groupOfURLs memberURL foo:dn

Opinions?
-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@netbsd.org