[Date Prev][Date Next]
Re: Keeping track of lastModifiedTime and lastModifiedBy
Sudhakar Chandra wrote:
> I'm using the core, inetorgperson and cosine schemas with my LDAP
> server. I want to store the lastModifiedTime and lastModifiedBy with
> each person entry in the directory. Can I configure slapd to
> automagically add this upon an entry's modification? Or do I need to do
> this from the LDAP client that is modifying the entry?
They're operational attributes: you cannot modify them;
all you need to do is set lastmod on (BTW it is on by default).
However, you need to explicitly require them when searching.
Note that the special code '+' (a plus) allows to ask for ALL
the operational attrs when querying the server.
ldapsearch '*' '+'
will require ALL the available attrs, while
ldapsearch creatorsName createTimestamp modifiersName modifyTimestamp
will return the create/modify attribs for all the entries.
Dr. Pierangelo Masarati | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale | fax: +39 02 2399 8334
Politecnico di Milano | mailto:firstname.lastname@example.org
via La Masa 34, 20156 Milano, Italy | http://www.aero.polimi.it/~masarati