Package: libnet-ldap-perl
Followup-For: Bug #339311

Hi,

the line mentioned in the bug report tries to convert
a scope argument passed to Net::LDAP search to one of the
3 allowed values for an LDAP scope.

The full code doing this is (all unrelated parts removed):

  my %scope = qw(base  0 one    1 single 1 sub    2 subtree 2);

  my %stash = ( scope => 2);

  if (exists $arg->{scope}) {
    my $sc = lc $arg->{scope};
    $stash{scope} = 0 + (exists $scope{$sc} ? $scope{$sc} : $sc);
  }

According to my Perl knowledge, the only way to provoke the
error on th bug is to pass a scope argument to the search() method
that is not among the list of allowed scopes, which - according to
the Net::LDAP man page - are: 'one', 'base' or 'sub'.
The code above is even more flexible and additionally allows
'single', 'subtree' as well as the numeric values 0, 1, and 2.

Please close the bug in the Debian BTS, as it is no bug in the code,
but simply an invocation of Net::LDAP->search() with unsupported
parameters to the scope option.

Regards
Peter


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-k7 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libnet-ldap-perl depends on:
ii  libconvert-asn1-perl          0.21-0pm1  Perl module for encoding and decod
ii  libwww-perl                   5.805-1    WWW client/server library for Perl
ii  perl [libmime-base64-perl]    5.8.8-7    Larry Wall's Practical Extraction 

libnet-ldap-perl recommends no packages.

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to