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

Re: autogenerated/virtual attributes



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.

But you could at least enforce that attribute values match according to what
you've subscribed above with a set-based constraint to avoid having false user
input in your data.

For auto-generating values you could customize your LDAP administration UI.
Which one are you using?

Ciao, Michael.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature