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

Re: attribute writing: can an overlay do this?



Stefano Zanmarchi wrote:
Hallo,
I hope someone can give me a hand on this issue.
I'd like my ldap server to automaitcally set the value of an attribute,
based on the value of another.
In the simplest version I'd like it to copy the value of an attribute into
another attribute, whenever the first one gets modified.
Example:

my example entry would be:

dn: uid=jsmith,ou=people,dc=myorg,dc=com
objectClass: myobjectclass
1st_attrib: 18_06_2009
2nd_attrib: 18_06_2009

now with ldapmodify I change *ONLY* 1st_attrib to
24_07_2009 and I'd like the result to be:

dn: uid=jsmith,ou=people,dc=myorg,dc=com
objectClass: myobjectclass
1st_attrib: 24_07_2009
2nd_attrib: 24_07_2009

with both attributes changed.

Even better would be if the second attribute could be  written to a value
based on the firs one (e.g. automatically adding 7 days to the date).

If your question is: can an overlay do this?  the answer is: yes
If your question is: does an existing overlay (among those distributed by OpenLDAP) do this? the answer is no (AFAIK).

p.