From: Mark W. <mew...@un...> - 2000-08-09 21:19:22
|
I'm not familiar with the $mesg->as_struct... Is that new Graham (sorry I'm in the middle of a major software upgrade here and haven't looked at .20 yet). In any case, createTimestamp is an operational attribute, which means it's not a physical part of the entry (it's actually generated by the server via data stored somewhere else for example the server logs, or at least that's how I understand it) and is usually only available to you if you are authenticated as the directory super-user account. Mark On Wed, 9 Aug 2000, Bing Du wrote: > I intented to use the following script to retrieve the value of > createTimestamp of each dn. But it did not work. > > ===================================== > %record = %{$mesg->as_struct}; > > my @dns = (sort keys %record); > > $count = $mesg->count; > > print "\n\n",$count . " entries returned.\n"; > > foreach $dn (@dns) > { > print "dn: $dn\n\n"; > print "createTimestamp: $record{$dn}{'createTimestamp'}\n"; > } > ====================================== > > The attribute 'createTimestamp' is defined in the schema. I found this > in oidtable.at on the directory server. > > ==================== > createTimestamp: operationalAttributeType.1 > :GeneralizedTime: \ > single-value : no-user-modification : usage=directoryOperation > ==================== > > If what I did was wrong, how can I retrieve its value? > > Thanks for any help, > > Bing > > |