This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
Unable to locate a user without a objectguid #919
Open
Description
- Laravel Version: 8
- Adldap2-Laravel Version: 6.1
- PHP Version: 7.4
Trying to login user via LDAP. It doesnt work and returns error below.
Here's my code:
config(['ldap.connections.default.settings.account_prefix' => '']);
config(['ldap.connections.default.settings.username' => $request->username]);
config(['ldap.connections.default.settings.password' => $request->password]);
config(['ldap.connections.default.settings.base_dn' => 'dc=blabla,dc=com,dc=tr']);
config(['ldap.connections.default.settings.hosts' => ['blabla']]);
$credentials = $request->only('username', 'password');
$aws = Auth::attempt($credentials);
if ($aws) {
$results = array('status' => 1, "message" => "Wrong credentials");
}
And here's my error:
{
"message": "Unable to locate a user without a objectguid",
"exception": "UnexpectedValueException",
"file": "/var/www/vhosts/blabla/httpdocs/vendor/adldap2/adldap2-laravel/src/Commands/Import.php",
"line": 184,
"trace": [
Metadata
Metadata
Assignees
Labels
No labels