request->data['ldap']; $password = $this->request->data['password']; return TableRegistry::get('LdapConnections')->ldapAuthentication($login, $password); } catch(Exception $e) { return $e->getMessage(); } } } ?>