Skip to content

Commit

Permalink
remove leftover codestyle error
Browse files Browse the repository at this point in the history
  • Loading branch information
tatankat committed Jun 30, 2022
1 parent 1051489 commit 8d2d889
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/authentication/ldap/ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public function onUserAuthenticate($credentials, $options, &$response)

switch ($auth_method) {
case 'search':
{
try {
$dn = str_replace('[username]', $this->params->get('username', ''), $this->params->get('users_dn', ''));

Expand Down Expand Up @@ -123,10 +122,8 @@ public function onUserAuthenticate($credentials, $options, &$response)
}

break;
}

case 'bind':
{
// We just accept the result here
try {
$ldap->bind($ldap->escape($credentials['username'], '', LDAP_ESCAPE_DN), $credentials['password']);
Expand Down Expand Up @@ -154,7 +151,6 @@ public function onUserAuthenticate($credentials, $options, &$response)
}

break;
}

default:
// Unsupported configuration
Expand Down

0 comments on commit 8d2d889

Please sign in to comment.