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.
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_dnto determine the the upper-most DN part. With PHP 8.5 the order between the number-based items and thecountitem in the returned array has been switched, so that this logic does no longer work.