https://github.com/neos/ldap
A LDAP integration for the Neos Flow Framework
https://github.com/neos/ldap
hacktoberfest
Last synced: 7 months ago
JSON representation
A LDAP integration for the Neos Flow Framework
- Host: GitHub
- URL: https://github.com/neos/ldap
- Owner: neos
- License: mit
- Created: 2015-09-22T17:28:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T17:28:46.000Z (over 3 years ago)
- Last Synced: 2025-05-13T14:17:30.800Z (8 months ago)
- Topics: hacktoberfest
- Language: PHP
- Homepage:
- Size: 166 KB
- Stars: 8
- Watchers: 1
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: Readme.rst
- License: LICENSE
Awesome Lists containing this project
README
Neos Ldap Documentation
=======================
Example LoginController
-----------------------
LoginController.php::
view->assign('username', $username);
}
/**
* @param \Neos\Flow\Mvc\ActionRequest $originalRequest
* @return string|void
*/
public function onAuthenticationSuccess(\Neos\Flow\Mvc\ActionRequest $originalRequest = NULL) {
$this->redirect('status');
}
/**
* Logs out a - possibly - currently logged in account.
*
* @return void
*/
public function logoutAction() {
$this->authenticationManager->logout();
$this->addFlashMessage('Successfully logged out.');
$this->redirect('index');
}
/**
* @return void
*/
public function statusAction() {
$this->view->assign('activeTokens', $this->securityContext->getAuthenticationTokens());
}
}
Index.html::
User
Password
Status.html::
Status: Logged in
User: {activeTokens.LdapProvider.account.accountIdentifier}
Logout
Make sure you configure the policies so that the login and logout actions are available for the user. For that use a Policy.yaml
like::
resources:
methods:
My_Package_LoginController: 'method(My\Package\Controller\LoginController->(index|status|login|authenticate|logout)Action())'
acls:
Everybody:
methods:
My_Package_LoginController: GRANT
Configuration examples
----------------------
You can find examples of a ``Settings.yaml`` file for Ldap and Active Directory in the Configuration/ folder
of the Neos.Ldap package.