-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sabina Talipova
committed
Oct 11, 2023
1 parent
df528fe
commit 7491c55
Showing
3 changed files
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -364,7 +364,6 @@ public function getUserByUsername($username, $baseDn = null, $scope = Ldap::SEAR | |
$filter = sprintf('(&(objectClass=user)(samaccountname=%s))', AbstractFilter::escapeValue($username)); | ||
break; | ||
case Ldap::ACCTNAME_FORM_BACKSLASH: // backslash style usernames, e.g. FOO\alice | ||
// @todo Not supported yet! | ||
throw new Exception('Backslash style not supported in LDAPGateway::getUserByUsername()!'); | ||
break; | ||
case Ldap::ACCTNAME_FORM_PRINCIPAL: // principal style usernames, e.g. [email protected] | ||
|
@@ -374,7 +373,6 @@ public function getUserByUsername($username, $baseDn = null, $scope = Ldap::SEAR | |
); | ||
break; | ||
case Ldap::ACCTNAME_FORM_DN: // distinguished name, e.g. CN=someone,DC=example,DC=co,DC=nz | ||
// @todo Not supported yet! | ||
throw new Exception('DN style not supported in LDAPGateway::getUserByUsername()!'); | ||
break; | ||
default: // default to principal style | ||
|
@@ -406,7 +404,6 @@ public function getCanonicalUsername($data) | |
} | ||
return $data['samaccountname']; | ||
case Ldap::ACCTNAME_FORM_BACKSLASH: // backslash style usernames, e.g. FOO\alice | ||
// @todo Not supported yet! | ||
throw new Exception('Backslash style not supported in LDAPGateway::getUsernameByEmail()!'); | ||
case Ldap::ACCTNAME_FORM_PRINCIPAL: // principal style usernames, e.g. [email protected] | ||
if (empty($data['userprincipalname'])) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters