From: Mark W. <mew...@un...> - 2000-08-09 21:37:16
|
Chris Ridd (who works for Messanging Direct) will be the best one to answer this. But he's leaving on a trip, so I don't know if he's online right now. Have you verified that the attribute is actually there (ie. have you dumped it out with ldapsearch or MD's version of db2ldif?) Mark On Wed, 9 Aug 2000, Bing Du wrote: > From my previous experience with Netscape directory server, > createTimestamp, creatorsName, etc. operational attributes are not > returned as usual search result, but if you explicitly ask for them, you > can get them. > Right now, I'm using directory server from MessagingDirect. > > Yes, I am authenticated as the super-user (cn=DSA Manager, cn=dsa, > dc=tamu, dc=edu). > > Bing > > >>> Mark Wilcox <mew...@un...> 08/09/00 04:16PM >>> > 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 > > > > > > |