warmans / silex-ldap-auth-controller-provider
LDAP auth controller provider for silex
Installs: 409
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/warmans/silex-ldap-auth-controller-provider
Requires
- php: >=5.3.0
- ext-ldap: *
- litek/silex-php-engine: dev-master
- silex/silex: 1.*
- zendframework/zend-ldap: 2.3.1
Requires (Dev)
- phpunit/phpunit: 4.1.*
- squizlabs/php_codesniffer: 1.*
This package is not auto-updated.
Last update: 2025-10-21 08:07:48 UTC
README
Usage:
$app->mount('/auth', new \SilexProvider\LdapAuthControllerProvider());
Requires the following config options:
'auth.template.login' => 'login',
'auth.ldap.options' => array(
    'host'                  => '',
    'bindRequiresDn'        => true,
    'baseDn'                => '',
    'accountFilterFormat'   => '',
    'username'              => '',
    'password'              => '',
)
(see Zend\Ldap docs for ldap option explanations)
The auth template should be a template available in your view paths (see litek/silex-php-engine).
The login template must submit a form to /auth/login with a field called "user" and "password". Groups can be enforced wuth the baseDn.