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

Unable to locate a user without a objectguid #919

Open
tcagkansokmen opened this issue Nov 3, 2021 · 0 comments
Open

Unable to locate a user without a objectguid #919

tcagkansokmen opened this issue Nov 3, 2021 · 0 comments

Comments

@tcagkansokmen
Copy link

  • 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": [
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant