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

Re: How to get the Directory's last modification time?



"Pierangelo Masarati" <ando@sys-net.it> writes:

>> Bruno Negrão <vpopmail@engepel.com.br> writes:
>>
>>> Hi all,
>>>
>>> Is there a way to know when the directory was last modified?
>>> Instead of reading all the modification times of all the entries, is
>>> there a way to quickly ask to the directory when it was last modified?
>>
>> ldapsearch -b cn=modify,cn=operations,cn=monitor -s base \
>> modifyTimestamp
>
> That's usually equal to the DSA's startup time, i.e. the modifyTimestamp
> and modifiersName are not touched as a consequence to internal
> modifications to back-monitor entries.  It is yet debated if they should,
> see related -devel threads, and, in case, the code would need plenty of
> work because at present only read locking is implemented (i.e. multiple
> threads can simultaneously read the contents of an entry).

Your are right, only the operation is counted, as a quick sample shows

dn: cn=Modify,cn=Operations,cn=Monitor
stdn: cn=Modify,cn=Operations,cn=Monitor
structuralObjectClass: monitorOperation
monitorOpInitiated: 1
monitorOpCompleted: 1
createTimestamp: 20041125075336Z
modifyTimestamp: 20041125075336Z
subschemaSubentry: cn=Subschema
hasSubordinates: FALSE

-Dieter

-- 
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:01443B53