Adldap2-Laravel icon indicating copy to clipboard operation
Adldap2-Laravel copied to clipboard

Unable to locate a user without a objectguid

Open tcagkansokmen opened this issue 4 years ago • 0 comments

  • 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": [

tcagkansokmen avatar Nov 03 '21 10:11 tcagkansokmen