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

Re: autogenerated/virtual attributes



Hi,

Michael Ströder schrieb (21.04.2012 20:12 Uhr):
btb@bitrate.net wrote:
given an entry such as:

dn=cn=abuse,ou=example.net,ou=mail,ou=groups,dc=example,dc=com
objectclass=mailgroup
cn=abuse
member=uid=jdoe,ou=people,ou=accounts,dc=example,dc=com

i'd like the entry to also include an attribute, generated automatically, based on the rdn of the entry and the superior's rdn.  for example:

dn=cn=abuse,ou=example.net,ou=mail,ou=groups,dc=example,dc=com
objectclass=mailgroup
cn=abuse
member=uid=jdoe,ou=people,ou=accounts,dc=example,dc=com
maillocaladdress=abuse@example.com

where maillocaladdress is the automatically generated attribute.

is this possible?  it seems like something an overlay might accommodate, so i thought i might try experimenting with slapo-rwm, but wanted to also ask here in the meantime.

I doubt that this is possible with slapo-rwm.
I'd like to come back to this from a slightly different point.

I have an attribute maildrop which values are like user@server.

Now an application may need the "user" value solely without the "server".

Can I provide the value of "user" (from the attribute maildrop) in a virtual attribute foo with slapo-rwm?

(I must confess I do not fully understand what the slapo-rwm man page wants to tell me.)


Marc