Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable26] Fix: Escape group names for LDAP #40740

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

AaronDewes
Copy link
Contributor

Backport of #37201.

@solracsf solracsf added the 3. to review Waiting for reviews label Oct 2, 2023
@solracsf solracsf added this to the Nextcloud 26.0.8 milestone Oct 2, 2023
@@ -925,7 +925,7 @@
}
$base = $this->configuration->ldapBase[0];
foreach ($cns as $cn) {
$rr = $this->ldap->search($cr, $base, 'cn=' . $cn, ['dn', 'primaryGroupToken']);
$rr = $this->ldap->search($cr, $base, 'cn=' . ldap_escape($cn, '', LDAP_ESCAPE_FILTER), ['dn', 'primaryGroupToken']);

Check notice

Code scanning / Psalm

PossiblyNullArgument Note

Argument 2 of OCA\User_LDAP\ILDAPWrapper::search cannot be null, possibly null value provided
@solracsf solracsf added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 3, 2023
@blizzz blizzz mentioned this pull request Oct 9, 2023
@blizzz blizzz merged commit 9619565 into nextcloud:stable26 Oct 9, 2023
35 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish feature: ldap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants