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