Skip to content

Validating of Base DN fails with PHP 8.5 #216

@schakko

Description

@schakko

With PHP 8.5 the validation of the Base DN fails with the error Base DN does not match the required style. (e.g. "DC=test,DC=ad").
See https://wordpress.org/support/topic/base-dn-does-not-match-the-required-style/.

Current implementation uses the last index of ldap_explode_dn to determine the the upper-most DN part. With PHP 8.5 the order between the number-based items and the count item in the returned array has been switched, so that this logic does no longer work.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions