Skip to content

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
$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

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
@AaronDewes AaronDewes deleted the stable27 branch June 19, 2024 19:25
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.

5 participants