projects / org / se7enxweb / ntlmbundle
Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
NtlmBundle | 7x | stable |
Version | Compatible with |
---|---|
N/A | N/A |
This bundle is in development
This bundle sets up the NTLM authentication provider for your application. If there is NTLM data
provided by the browser, then the application will try and authenticate the provided username against
your user provider/chain user providers
Add this bundle to your application's kernel:
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new BrowserCreative\NtlmBundle\BrowserCreativeNtlmBundle(),
// ...
);
}
Update your security.yml:
security:
factories:
- "%kernel.root_dir%/../vendor/bundles/BrowserCreative/NtlmBundle/Resources/config/security_factories.xml"
providers:
...
firewalls:
secured_area:
pattern: ^/
ntlm_protocol:
provider: chain_provider
redirect_to_login_form_on_failure: true
ntlm_addresses: [ ...list of ip addresses authorized to do NTLM auth... ]
ntlm_form_login:
provider: chain_provider
remember_me_parameter: _remember_me
logout: ~
anonymous: true
...
Optional: set the following 2 parameters:
parameters:
browser_detection.mobile: 'regexp...'
browser_detection.desktop 'regexp...'
When set, they will be matched against the user-agent string from the browser: