Your message dated Sat, 29 Jun 2024 10:46:15 +0000 with message-id <E1sNVax-002bYQ-LP@coccia.debian.org> and subject line Released with 12.6 has caused the Debian Bug report #1057267, regarding bookworm-pu: package phpldapadmin/1.2.6.3-0.3+deb12u1 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 1057267: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057267 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: bookworm-pu: package phpldapadmin/1.2.6.3-0.3+deb12u1
- From: William Desportes <williamdes@wdes.fr>
- Date: Sat, 2 Dec 2023 11:56:14 +0100
- Message-id: <de8b5018-6e95-47da-a27e-ae2dca1b428b@wdes.fr>
Subject: bookworm-pu: package phpldapadmin/1.2.6.3-0.3+deb12u1 Package: release.debian.org User: release.debian.org@packages.debian.org Usertags: pu Tags: bookworm Severity: normal [ Reason ] Some users have older PHP versions than the one from bookworm, phpldapadmin is compatible with most of the recent ones. But the patch that was distributed at the time of packaging was limited to PHP 8.1+ and got outdated by a newer one that is compatible with more PHP versions. [ Impact ] The users will no be able to login to phpldapadmin on older PHP versions. [ Tests ] The fix was distributed by upstream on newer versions. This fix/patch was successfully tested in production by myself. [ Risks ] None. The patch is trivial. [ Checklist ] [x] *all* changes are documented in the d/changelog [x] I reviewed all changes and I approve them [x] attach debdiff against the package in (old)stable [x] the issue is verified as fixed in unstable [ Changes ] I changed the type check to what upstream did provide after I had patched the file myself for PHP 8.1+ only. [ Other info ] Reported as https://github.com/leenooks/phpLDAPadmin/issues/231 and https://github.com/leenooks/phpLDAPadmin/issues/230 Salsa CI did build this successfully: https://salsa.debian.org/php-team/pear/phpldapadmin/-/pipelines/574472diff -Nru phpldapadmin-1.2.6.3/debian/changelog phpldapadmin-1.2.6.3/debian/changelog --- phpldapadmin-1.2.6.3/debian/changelog 2023-03-19 00:10:35.000000000 +0100 +++ phpldapadmin-1.2.6.3/debian/changelog 2023-09-04 12:14:31.000000000 +0200 @@ -1,3 +1,9 @@ +phpldapadmin (1.2.6.3-0.3+deb12u1) bookworm; urgency=medium + + * Update the patch for PHP 7.4 LDAP login to work like PHP 8.1 + + -- William Desportes <williamdes@wdes.fr> Mon, 04 Sep 2023 12:14:31 +0200 + phpldapadmin (1.2.6.3-0.3) unstable; urgency=medium * Non-maintainer upload. diff -Nru phpldapadmin-1.2.6.3/debian/patches/Fix-ldap-connect-PHP-8.1-is-now-a-class.patch phpldapadmin-1.2.6.3/debian/patches/Fix-ldap-connect-PHP-8.1-is-now-a-class.patch --- phpldapadmin-1.2.6.3/debian/patches/Fix-ldap-connect-PHP-8.1-is-now-a-class.patch 2023-03-19 00:10:35.000000000 +0100 +++ phpldapadmin-1.2.6.3/debian/patches/Fix-ldap-connect-PHP-8.1-is-now-a-class.patch 2023-09-04 12:13:31.000000000 +0200 @@ -5,12 +5,15 @@ Ref: https://www.php.net/manual/en/function.ldap-connect.php#refsect1-function.ldap-connect-changelog In 8.1.0 -> Returns an LDAP\Connection instance now; previously, a resource was returned. + +Origin: upstream +Forwarded: https://github.com/leenooks/phpLDAPadmin/commit/b035e8a0f4f49633c2492a07f0182eefb311848d --- lib/ds_ldap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ds_ldap.php b/lib/ds_ldap.php -index 9537ff2..f465207 100644 +index 9537ff2..2f82eda 100644 --- a/lib/ds_ldap.php +++ b/lib/ds_ldap.php @@ -216,7 +216,7 @@ class ldap extends DS { @@ -18,7 +21,7 @@ $resource,$this->getValue('server','host'),$this->getValue('server','port')); - if (! is_resource($resource)) -+ if (! $resource instanceof \LDAP\Connection) ++ if (!$resource) debug_dump_backtrace('UNHANDLED, $resource is not a resource',1); # Go with LDAP version 3 if possible (needed for renaming and Novell schema fetching) @@ -27,7 +30,7 @@ # If we didnt log in... - if (! is_resource($connect) || $this->noconnect || ! $this->userIsAllowedLogin($userDN)) { -+ if (! $connect instanceof \LDAP\Connection || $this->noconnect || ! $this->userIsAllowedLogin($userDN)) { ++ if (!$connect || $this->noconnect || ! $this->userIsAllowedLogin($userDN)) { $this->logout($method); return false;Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
- To: 1057267-done@bugs.debian.org
- Subject: Released with 12.6
- From: Jonathan Wiltshire <jmw@coccia.debian.org>
- Date: Sat, 29 Jun 2024 10:46:15 +0000
- Message-id: <E1sNVax-002bYQ-LP@coccia.debian.org>
Version: 12.6 The upload requested in this bug has been released as part of 12.6.
--- End Message ---