File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
apps/user_ldap/lib/Mapping Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2525
2626namespace OCA \User_LDAP \Mapping ;
2727
28+ use OC \DB \QueryBuilder \QueryBuilder ;
29+
2830/**
2931* Class AbstractMapping
32+ *
3033* @package OCA\User_LDAP\Mapping
3134*/
3235abstract class AbstractMapping {
@@ -182,7 +185,7 @@ public function getListOfIdsByDn(array $fdns): array {
182185 $ qb = $ this ->dbc ->getQueryBuilder ();
183186 $ qb ->select ('owncloud_name ' , 'ldap_dn ' )
184187 ->from ($ this ->getTableName (false ))
185- ->where ($ qb ->expr ()->in ('ldap_dn ' , $ qb ->createNamedParameter ($ fdns )));
188+ ->where ($ qb ->expr ()->in ('ldap_dn ' , $ qb ->createNamedParameter ($ fdns, QueryBuilder:: PARAM_STR_ARRAY )));
186189 $ stmt = $ qb ->execute ();
187190
188191 $ results = $ stmt ->fetchAll (\Doctrine \DBAL \FetchMode::ASSOCIATIVE );
You can’t perform that action at this time.
0 commit comments