Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 7a1298b

Browse files
committed
Revert bind as user option.
1 parent af009ae commit 7a1298b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/AdldapAuthUserProvider.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function discoverAdldapFromModel($model)
120120
*/
121121
protected function authenticate($username, $password)
122122
{
123-
return $this->getAdldap()->auth()->attempt($username, $password, $this->getBindAsUser());
123+
return $this->getAdldap()->auth()->attempt($username, $password);
124124
}
125125

126126
/**
@@ -144,15 +144,4 @@ protected function getLoginFallback()
144144
{
145145
return Config::get('adldap_auth.login_fallback', false);
146146
}
147-
148-
/**
149-
* Retrieves the Adldap bind as user option for binding
150-
* as the authenticated user.
151-
*
152-
* @return bool
153-
*/
154-
protected function getBindAsUser()
155-
{
156-
return Config::get('adldap_auth.bind_as_user', false);
157-
}
158147
}

0 commit comments

Comments
 (0)