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