2017 © Pedro PelĆ”ez
 

symfony-bundle security-active_directory

This is a bundle to allow authentication into symfony >= 2.6 by an Active directory

image

ztec/security-active_directory

This is a bundle to allow authentication into symfony >= 2.6 by an Active directory

  • Wednesday, April 13, 2016
  • by ztec
  • Repository
  • 5 Watchers
  • 14 Stars
  • 1,936 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 2 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

Ztec/Security/ActiveDirectory

This package is a bundle for symfony 2.1. It use the standard form_login security model to authenticate user from an Active Directory domain. It use LDAP as communication layer. So you need the LDAP extension installed on your server to make it work., (*1)

Requirements

php 5.2.4, (*2)

php_ldap, (*3)

ssl configuration for LDAP. see http://adldap.sourceforge.net/wiki/doku.php?id=ldap_over_ssl, (*4)

Compatible with Symfony 2.1, 2.2 and 2.3.x, (*5)

Installation

You need to add a package to your dependency list :, (*6)

//composer.json
"ztec/security-active_directory": "dev-master"

You need to enable the bundle into your kernel, (*7)

//app/AppKernel.php
new Ztec\Security\ActiveDirectoryBundle\ZtecSecurityActiveDirectoryBundle(),

You need to configure your domain specific information, (*8)

//app/config/config.yml or app/config/parameters.yml
parameters:
    ztec.security.active_directory.settings:
        account_suffix : riper.fr # without the @ at the beginning
        base_dn : DC=RIPER,DC=FR #The DN of the domain
        domain_controllers : [ baudrive.kim.riper.fr ] #Servers to use for ldap connection (Random)
        admin_username: #Null to use the userConnection
        admin_password: #Null to use the userConnection
        real_primarygroup : true #For Linux compatibility.
        use_ssl : false #Set it true need configuration of the server to be useful
        use_tls : false #Set it true need configuration of the server to be useful
        recursive_grouproles: false #recursive group roles
        username_validation_pattern: /^[a-z0-9-.]+$/i #Regex that check the final username value (extracted from patterns below). Must be complient with your Active Directory username policy.
        username_patterns: #username is extracted from the string the user put into the login form
          - /([^@]*)@riper.fr/i  # like toto@riper.fr
          - /RIPER\\(.*)/i #like RIPER\toto
          - /RIPER.FR\\(.*)/i #like RIEPER.FR\toto
          - /(.*)/i #like toto

You need to add security parameters, (*9)

//app/config/security.yml
encoders:
    Ztec\Security\ActiveDirectoryBundle\Security\User\adUser : plaintext #Active directory does not support encrypted password yet

providers:
    my_active_directory_provider :
          id: ztec.security.active.directory.user.provider

firewalls:
    secured_area:
        active_directory: #Replace the 'form_login' line with this
                check_path: /demo/secured/login_check
                login_path: /demo/secured/login

Useful information

Roles are got from Active directory. The name is transformed to match the ROLE system of Symfony2, (*10)

Domain User => ROLE_DOMAIN_USER
Administrators = ROLE_ADMINISTRATORS

Nested Group are not supported yet. Enabling the option wont affect the Role check, (*11)

SSL part of the lib isn't used yet and haven't been tested with Symfony, (*12)

The Versions

13/04 2016

v2.x-dev

2.9999999.9999999.9999999-dev https://github.com/RiperFr/Security-ActiveDirectoryBundle

This is a bundle to allow authentication into symfony >= 2.6 by an Active directory

  Sources   Download

CC-BY-4.0

The Requires

 

by LoĆÆc Doubinine

bundle symfony ldap active directory

13/04 2016

v2.0.0

2.0.0.0 https://github.com/RiperFr/Security-ActiveDirectoryBundle

This is a bundle to allow authentication into symfony >= 2.6 by an Active directory

  Sources   Download

CC-BY-4.0

The Requires

 

by LoĆÆc Doubinine

bundle symfony ldap active directory

09/04 2016

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/RiperFr/Security-ActiveDirectoryBundle

This is a bundle to allow authentication into symfony >= 2.1 by an Active directory

  Sources   Download

CC-BY

The Requires

 

by LoĆÆc Doubinine

bundle symfony ldap active directory

09/04 2016

v1.0.1

1.0.1.0 https://github.com/RiperFr/Security-ActiveDirectoryBundle

This is a bundle to allow authentication into symfony >= 2.1 by an Active directory

  Sources   Download

CC-BY

The Requires

 

by LoĆÆc Doubinine

bundle symfony ldap active directory

21/09 2015

v1.0.0

1.0.0.0 https://github.com/RiperFr/Security-ActiveDirectoryBundle

This is a bundle to allow authentication into symfony >= 2.1 by an Active directory

  Sources   Download

CC-BY

The Requires

 

by LoĆÆc Doubinine

bundle symfony ldap active directory

17/11 2014

dev-master

9999999-dev https://github.com/ztec/security-active_directory

This is a bundle to allow authentication into symfony >= 2.1 by an Active directory

  Sources   Download

CC-BY

The Requires

 

by LoĆÆc Doubinine

bundle symfony ldap active directory