request->getData('ldap'); $password = $this->request->getData('password'); // calls src/Model/Table/LdapConnectionsTable.php/ldapAuthentication() return TableRegistry::get('LdapConnections')->ldapAuthentication($login, $password); } catch (Exception $e) { return $e->getMessage(); } } } ?>