warmans/silex-ldap-auth-controller-provider

There is no license information available for the latest version (0.0.3) of this package.

LDAP auth controller provider for silex

0.0.3 2014-09-01 15:32 UTC

This package is not auto-updated.

Last update: 2024-12-17 04:01:28 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.