title: Invalid credentials with Adldap::search()->users()->get();
body: <ul>
  <li>Laravel Version: 5.4</li>
  <li>Adldap2-Laravel Version: &quot;^3.0&quot;,</li>
  <li>PHP Version: 5.6.30</li>
  </ul>
  <p>I managed to make the connection work to the AD, but I can't seem to make the Auth::attempt work.
  It will always return false. Anyone got an idea, or a hint?</p>
  <pre><code>public function login(Request $request) {
  
      $search = Adldap::search()-&gt;where('samaccountname', '=', 'tba')-&gt;get();
      // this is returning the correct user
      dd($search);
  
      //'username' =&gt; 'tba'
      // 'passwrod' =&gt; 'is the entered password'
      //this goes into error part
      if (Auth::attempt(request()-&gt;only('username', 'password'))) {
          dd('success');
      } else {
          dd('error');
      }
  
  }
  </code></pre>
  <p>'usernames' =&gt; [</p>
  <pre><code>/*
  |--------------------------------------------------------------------------
  | LDAP
  |--------------------------------------------------------------------------
  |
  | This is the LDAP users attribute that you use to authenticate
  | against your LDAP server. This is usually the users
  |'sAMAccountName' / 'userprincipalname' attribute.
  |
  | If you'd like to use their username to login instead, insert `samaccountname`.
  |
  */
  
  'ldap' =&gt; 'samaccountname',
  
  /*
  |--------------------------------------------------------------------------
  | Eloquent
  |--------------------------------------------------------------------------
  |
  | This is the attribute that is used for locating
  | and storing the LDAP username above.
  |
  | If you're using a `username` field instead, change this to `username`.
  |
  | This option is only applicable to the DatabaseUserProvider.
  |
  */
  
  'eloquent' =&gt; 'username',
  </code></pre>
  <p>ah right and</p>
  <p>Adldap::auth()-&gt;attempt(request()-&gt;only('username', 'password'))</p>
  <p>is giving me an ErrorException:
  Missing argument 2 for Adldap\Auth\Guard::attempt(), called in /media/sf_www/prm/app/Http/Controllers/Auth/LoginController.php on line 63 and defined&lt;</p>
  <p>UPDATE:</p>
  <p>I managed to get to the success:</p>
  <pre><code>if (Adldap::auth()-&gt;attempt(request()-&gt;get('username'), request()-&gt;get('password'))) {
      dd('success');
  } else {
      dd('error');
  }
  </code></pre>
  <p>I can get to the success, the strange thing is I have to use the CN name as user name.
  if I use the samaccountname wich is &quot;tba&quot; it doesn't work.</p>
  <p>More then so interesting is that Auth isn't working at all. Returns False</p>
  <pre><code>Auth::attempt(request()-&gt;only('username', 'password'))
  </code></pre>
  <p>I could need some help/introductions here.</p>