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

[stable27] Fix: Escape group names for LDAP #40739

Merged
merged 1 commit into from Oct 9, 2023

Conversation

AaronDewes
Copy link
Contributor

Backport of #37201.

@solracsf solracsf added 3. to review Waiting for reviews feature: ldap labels Oct 2, 2023
@solracsf solracsf added this to the Nextcloud 27.1.2 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
@blizzz blizzz mentioned this pull request Oct 5, 2023
1 task
@blizzz blizzz mentioned this pull request Oct 9, 2023
@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish bug and removed 3. to review Waiting for reviews labels Oct 9, 2023
@blizzz blizzz merged commit 7396412 into nextcloud:stable27 Oct 9, 2023
34 of 36 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 bug feature: ldap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants