From: Graham B. <gb...@po...> - 2000-08-10 11:16:35
|
Actually thats wrong, they are not lowercased (too early in the morning) But turning on debug or doing $_->dump for ($mesg->entries) will help see what the server is returning Graham. On Thu, Aug 10, 2000 at 06:35:46AM +0100, Graham Barr wrote: > 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 > > > > > |