title: CakePHP 2.x custom "Authentication adapter &quot;LdapAuthorize&quot; was not found
body: <p>I'm building an application using CakePHP and trying to incorporate a custom authentication object but it does not seem to be able to find it. I get the following error when I try to log in: "Authentication adapter &quot;LdapAuthorize&quot; was not found". I have created the file app/Controller/Component/Auth/LdapAuthorize.php with my code for my authentication. Near the top of "AppController.php" I have</p>
  
  <pre><code>App::uses('LdapAuthroize', 'Controller/Component/Auth/LdapAuthorize');
  </code></pre>
  
  <p>and within the AppController class I have</p>
  
  <pre><code>public $components = array(
          'Session',
          'Auth' =&gt; array(
              'loginRedirect'  =&gt; array('controller' =&gt; 'pendings', 'action' =&gt; 'index'),
              'logoutRedirect' =&gt; array('controller' =&gt; 'users', 'action' =&gt; 'login'),
              'authorize'      =&gt; array('Controller'),
              'authenticate'   =&gt; array('LdapAuthorize')
          )
      );
  </code></pre>
  
  <p>and then in my UsersController.php I have the following login function. </p>
  
  <pre><code>        public function login() {       
  
          if($this-&gt;request-&gt;is('post')) {
              if($this-&gt;Auth-&gt;login()) { 
                                  // My Login stuff...
                              }
                      else
                          $this-&gt;redirect(array('controller'=&gt;'someController', 'action'=&gt;'someAction'));         
          }
      }
  </code></pre>
  
  <p>If anyone has any idea why it can't seem to load my custom authentication object that would be awesome. Thanks!</p>