From: Graham B. <gb...@po...> - 2000-08-10 05:39:52
|
as_struct was added to aid moving from Net::LDAPapi, I do not reccomend its use. But anyway all tags in the hash are lowercased, so you would need to use $record{$dn}{'createtimestamp'} Graham. On Wed, Aug 09, 2000 at 04:11:00PM -0500, 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 > > |