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

Re: how use lastmod to track last modify time


On Saturday 23 November 2002 19:50, Tony Earnshaw wrote:
> > There is no need to add modifyTimestamp to the schema. It is already
> > there.
> In 2.1.8, at least, it is commented out (together with other "modifies")
> as obsolete.
Although it may be commented out in the schema files, it is in the code !

> > modifyTimestamp, the attribute influenced by setting lastmod (as "man
> > slapd.conf" states), is an operational attribute. You have to
> > explicitely ask for it in ldapsearch.
> How would you do this (don't say "man ldapsearch")? Further, how would
> you do it in PHP4?
Here is an example:
    ldapsearch -h server.domain  -b o=Base-DN -D cn=Bind-DN -W -x \ 
    '(objectclass=*)' modifyTimestamp

Unfortunately, I do not use PHP. In Perl, it is as simple as giving the
"attrs" option with the appropriate attribute names to the search() method.


Peter Marschall     |   eMail: peter.marschall@mayn.de
Scheffelstraße 15   |          peter.marschall@is-energy.de
97072 Würzburg      |   Tel:   0931/14721
PGP:  D7 FF 20 FE E6 6B 31 74  D1 10 88 E0 3C FE 28 35