Package: phpldapadmin / 1.2.6.3-0.3+deb12u1

Metadata

Package Version Patches format
phpldapadmin 1.2.6.3-0.3+deb12u1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
Fix Mandatory function arguments.patch | (download)

htdocs/collapse.php | 2 1 + 1 - 0 !
htdocs/draw_tree_node.php | 2 1 + 1 - 0 !
htdocs/expand.php | 2 1 + 1 - 0 !
htdocs/refresh.php | 2 1 + 1 - 0 !
lib/PageRender.php | 8 4 + 4 - 0 !
lib/Tree.php | 2 1 + 1 - 0 !
lib/ds_ldap.php | 8 4 + 4 - 0 !
lib/ds_ldap_pla.php | 6 3 + 3 - 0 !
lib/functions.php | 8 4 + 4 - 0 !
lib/xmlTemplates.php | 2 1 + 1 - 0 !
10 files changed, 21 insertions(+), 21 deletions(-)

 fix mandatory function arguments must be listed before optional ones

Fix get_magic_quote_gpc PHP 7.patch | (download)

lib/common.php | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 do not call get_magic_quote_gpc() when running in php version >=
 5.4.

This deprecated function has been removed in PHP 8.

Fix error reporting detection PHP 8.patch | (download)

lib/functions.php | 7 4 + 3 - 0 !
1 file changed, 4 insertions(+), 3 deletions(-)

 fix php 8 error reporting detection

Fix memorylimit warning PHP 8.patch | (download)

lib/config_default.php | 2 1 + 1 - 0 !
lib/functions.php | 35 29 + 6 - 0 !
2 files changed, 30 insertions(+), 7 deletions(-)

 fix memorylimit warning

I did not change the system_message part as it changes the message,  it's not needed for this patch

Ref: https://github.com/leenooks/phpLDAPadmin/pull/180#discussion_r1141029893

Fix deprecated float conversion PHP 8.patch | (download)

lib/createlm.php | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 fix deprecated float conversion

Fix trim null PHP 8.patch | (download)

htdocs/cmd.php | 2 1 + 1 - 0 !
lib/ds.php | 3 2 + 1 - 0 !
2 files changed, 3 insertions(+), 2 deletions(-)

 fix trim(): passing null to parameter #1  is deprecated

- Unrecognized error number: 8192: trim(): Passing null to parameter #1 ($string) of type string is deprecated

Fix deprecated code PHP 8.1.patch | (download)

htdocs/export_form.php | 2 1 + 1 - 0 !
htdocs/login.php | 3 1 + 2 - 0 !
htdocs/password_checker.php | 4 2 + 2 - 0 !
htdocs/schema.php | 6 3 + 3 - 0 !
lib/Attribute.php | 4 2 + 2 - 0 !
lib/PageRender.php | 16 8 + 8 - 0 !
lib/Query.php | 2 1 + 1 - 0 !
lib/Template.php | 9 6 + 3 - 0 !
lib/TemplateRender.php | 2 1 + 1 - 0 !
lib/ds_ldap.php | 6 3 + 3 - 0 !
lib/functions.php | 9 9 + 0 - 0 !
lib/schema_functions.php | 14 7 + 7 - 0 !
lib/xmlTemplates.php | 4 2 + 2 - 0 !
13 files changed, 46 insertions(+), 35 deletions(-)

 fix php 8.1 deprecated code

Fix class name builtin clash PHP 8.patch | (download)

lib/Attribute.php | 917 0 + 917 - 0 !
lib/AttributeFactory.php | 2 1 + 1 - 0 !
lib/BinaryAttribute.php | 2 1 + 1 - 0 !
lib/DateAttribute.php | 2 1 + 1 - 0 !
lib/DnAttribute.php | 2 1 + 1 - 0 !
lib/GidAttribute.php | 2 1 + 1 - 0 !
lib/MultiLineAttribute.php | 2 1 + 1 - 0 !
lib/ObjectClassAttribute.php | 2 1 + 1 - 0 !
lib/PLAAttribute.php | 917 917 + 0 - 0 !
lib/PasswordAttribute.php | 2 1 + 1 - 0 !
lib/SelectionAttribute.php | 2 1 + 1 - 0 !
lib/ShadowAttribute.php | 2 1 + 1 - 0 !
lib/Visitor.php | 24 14 + 10 - 0 !
13 files changed, 941 insertions(+), 937 deletions(-)

 fix class name attribute to plaattribute because of php8 class name
 clash

It has been introduced when class Attribute has been renamed
to PLAAttribute to avoid a name clash with the built-in
class of PHP 8.

Fix openssl 3 cipher name PHP 8.patch | (download)

lib/functions.php | 12 6 + 6 - 0 !
1 file changed, 6 insertions(+), 6 deletions(-)

 fix openssl 3 php 8 cipher method

Fix openssl IV length PHP 8.patch | (download)

lib/functions.php | 16 10 + 6 - 0 !
1 file changed, 10 insertions(+), 6 deletions(-)

 fix openssl iv "openssl_encrypt(): setting of iv length for aead
 mode failed"

Fix ldap connect PHP 8.1 is now a class.patch | (download)

lib/ds_ldap.php | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix ldap connect is a class on php 8.1 and not a resource anymore

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.

Fix strftime is deprecated PHP 8.1.patch | (download)

lib/HTMLTree.php | 2 1 + 1 - 0 !
lib/PageRender.php | 6 3 + 3 - 0 !
2 files changed, 4 insertions(+), 4 deletions(-)

 fix strftime is deprecated on php 8.1

Fix dynamic property PHP 8.2.patch | (download)

lib/PLAAttribute.php | 1 1 + 0 - 0 !
lib/Query.php | 1 1 + 0 - 0 !
lib/Template.php | 1 1 + 0 - 0 !
lib/TemplateRender.php | 2 2 + 0 - 0 !
lib/import_functions.php | 1 1 + 0 - 0 !
lib/page.php | 1 1 + 0 - 0 !
6 files changed, 7 insertions(+)

 fix creation of dynamic property

- Deprecated: Creation of dynamic property page::$index is deprecated in /usr/share/phpldapadmin/lib/page.php on line 38
- Deprecated: Creation of dynamic property page::$sysmsg is deprecated in /usr/share/phpldapadmin/lib/page.php on line 468
- Deprecated: Creation of dynamic property page::$_block is deprecated in /usr/share/phpldapadmin/lib/page.php on line 241
- Creation of dynamic property Template::$askcontainer is deprecated
- Creation of dynamic property PLAAttribute::$js is deprecated (on create entry of type Thunderbird)
- On import feature
- On export feature
- And others..

CVE 2020 35132.patch | (download)

lib/PageRender.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 patch cve-2020-35132 on update data

Ref: https://github.com/leenooks/phpLDAPadmin/issues/137

Fix htmlspecialchars null PHP 8 mass edit.patch | (download)

lib/MassRender.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix htmlspecialchars(): passing null to parameter #1 ($string) of
 type string is deprecated

On mass render edit

Fix preg_match null PHP 8 remove password.patch | (download)

lib/PageRender.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix preg_match(): passing null to parameter #2 ($subject) of type
 string is deprecated

On remove password
Have two password for an user, edit, clear one,  save changes