Merge pull request #56105 from nextcloud/backport/56085/stable32

[stable32] fix(LDAP): drop hard base checks for now
pull/56110/head
Louis 2025-10-30 17:51:14 +07:00 committed by GitHub
commit 9aaf32ee67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 14 deletions

@ -520,20 +520,6 @@ class Connection extends LDAPUtility {
);
}
if (!empty($baseUsers) && !$this->checkBasesAreValid($baseUsers, $base)) {
throw new ConfigurationIssueException(
'User base is not in root base',
$this->l10n->t('User base DN is not a subnode of global base DN'),
);
}
if (!empty($baseGroups) && !$this->checkBasesAreValid($baseGroups, $base)) {
throw new ConfigurationIssueException(
'Group base is not in root base',
$this->l10n->t('Group base DN is not a subnode of global base DN'),
);
}
if (mb_strpos((string)$this->configuration->ldapLoginFilter, '%uid', 0, 'UTF-8') === false) {
throw new ConfigurationIssueException(
'Login filter does not contain %uid placeholder.',