Skip to content

Commit 136aaf5

Browse files
authored
Merge pull request #5 from mapbender/fix/ldap-search-function
Fix ldap_search function
2 parents afc4b9c + 25a1ac5 commit 136aaf5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Security/MapbenderLdapAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function authenticate(Request $request): Passport
5353
$this->client->bind();
5454
$queryString = str_replace('{username}', $this->client->escape($username, '', LDAP_ESCAPE_FILTER), $this->query);
5555
$query = $this->client->query($this->baseDn, $queryString, [
56-
'scope' => QueryInterface::SCOPE_ONE,
56+
'scope' => QueryInterface::SCOPE_SUB,
5757
]);
5858
$results = $query->execute();
5959

Security/Permission/SubjectDomainLdapGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getAssignableSubjects(): array
4646
{
4747
$this->client->bind();
4848
$query = $this->client->query($this->baseDn, $this->query, [
49-
'scope' => QueryInterface::SCOPE_ONE,
49+
'scope' => QueryInterface::SCOPE_SUB,
5050
]);
5151
$ldapGroups = [];
5252

Security/Permission/SubjectDomainLdapUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getAssignableSubjects(): array
4141
{
4242
$this->client->bind();
4343
$query = $this->client->query($this->baseDn, $this->query, [
44-
'scope' => QueryInterface::SCOPE_ONE,
44+
'scope' => QueryInterface::SCOPE_SUB,
4545
]);
4646
$ldapUsers = [];
4747

0 commit comments

Comments
 (0)