From: anil m. <ani...@ya...> - 2001-05-15 11:54:40
|
Hi, I am using Net::LDAP and protocol version 3. I am getting a typical problem that I am not able to get values from server though receiving attributes list. My bind is successful. Giving exact base, filter and attr parameters. Still not getting values from server. I am sure that the particular values are present in the server. I am using either cases like my $href = $result->as_struct; my @arrayOfDNs = keys %$href ; foreach (@arrayOfDNs) { print $_,"\n"; my $valref = $$href{$_}; my @arrayOfAttrs = sort keys %$valref; my $attrName; foreach $attrName (@arrayOfAttrs) { next if ( $attrName =~ /;binary$/ ); my $attrVal = @$valref{$attrName} ; print "\t $attrName: @$attrVal \n"; } } # end of as_struct method -------------------------------------- #using the walk through method my @entries = $result->entries; my $entr ; foreach $entr ( @entries ) { print "DN: ",$entr->dn,"\n"; my $attr; foreach $attr ( sort $entr->attributes ){ next if ( $attr =~ /;binary$/ ); print " $attr : ",$entr->get_value($attr),"\n"; } } # end of walk through method ----------------------------------------- I appreciate your cooperation in finding solution for this. Thanks, Anil. __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ |