Unable to reproduce: libdbd-ldap-perl: always produces warning on statement preparation and disconnect

Andreas Tille <[email protected]> Wed, 23 Jul 2025 14:31:54 +0200
Newsgroups gmane.linux.debian.devel.perl
Message-ID <[email protected]>
Control: tags -1 help
Thanks

Hi,

I came across this old bug of libdbd-ldap-perl since it was a candidate
for the Bug of the Day[1].  I just migrated the package to the Debian Perl
team[2] and upgraded the repository to the latest upstream version.  Both,
the current version in unstable as well as the package that builds from the
repository, are failing your test:

$ ls -l
insgesamt 8
-rw-r--r-- 1 andreas admin 156 23. Jul 14:18 bugs.debian.org.ldb
-rw-r--r-- 1 andreas admin 632 23. Jul 14:18 test.pl
$ perl test.pl 
Could not connect to "bugs.debian.org" (Connection refused)! at /usr/share/perl5/DBD/LDAP.pm line 534, <DBFILE> line 2.
DBI connect('bugs.debian.org','',...) failed: Could not connect to "bugs.debian.org" (Connection refused)! at test.pl line 4.
Cannot connect as guest (readonly): Could not connect to "bugs.debian.org" (Connection refused)! at test.pl line 4, <DBFILE> line 2.

This is true for libdbd-ldap-perl 0.20-1.1 as well as the freshly build
version 1.00-1.

Any hints are welcome.

Kind regards
    Andreas.


[1] https://salsa.debian.org/qa/tiny_qa_tools/-/wikis/Tiny-QA-tasks#bug-of-the-day
[2] https://salsa.debian.org/perl-team/modules/packages/libdbd-ldap-perl