2017 © Pedro Peláez
 

symfony-bundle ldap-bundle

Symfony LCStudiosLdapBundle

image

lcstudios/ldap-bundle

Symfony LCStudiosLdapBundle

  • Monday, December 9, 2013
  • by globin
  • Repository
  • 2 Watchers
  • 1 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

====, (*1)

LCStudiosLdapBundle

This bundle is forked from DapsBundle which is based on the pull request accepted by Symfony2 for LDAP support. While it has been accepted, some of us would like to use this code sooner than the version of Symfony natively supporting it will provide., (*2)

This project is intended to take these code changes and silo them into a bundle so that we can easily extend these changes for our own purposes., (*3)

The fork fixes some issues in DapsBundle, which needs to be copied into the src folder and does not allow being configured from the central config. Role handling has been changed, too., (*4)

Documentation

LdapBundle Setup Instructions

To setup the LdapBundle, follow these steps:, (*5)

  1. Install via composer
  2. Modify app/config/security.yml and add your ldap user provider, (*6)

    security:
        providers:
            lc_studios_ldap:
                id: lc_studios_ldap_user_provider

    also tell Symfony how to encode passwords. For example, (*7)

    security:
        encoders:
            LCStudios\LdapBundle\Security\User\LdapUser: plaintext

    You can now also ensure that you define the parts of your app that will be under LDAP protection. e.g, (*8)

    lc_studios_ldap:
        host: 'ldap://example.com'
        port: 389
        uid: 'uid'
        authenticated_role: 'ROLE_USER'
        base_dn: 'cn=users,dc=example,dc=com'
        bind_user:
            dn: 'cn=ldapbind,cn=serviceusers,dc=example,dc=com'
            password: ldapbinduserpw

    Add your LDAP server specific configs. e.g, (*9)

    secured_area:
        pattern:    ^/
        form-login-ldap: true
  3. Setup your SecurityController, routes and templates as detailed in the Security Chapter of the Symfony Documentation., (*10)

  4. Add Bundle to AppKernel., (*11)

Every authenticated user gets the role defined as 'authenticated_role'. Additionally they get roles determined by OUs and groups, e.g.: - ROLE_ADMIN if they are in the OU 'admin' - ROLE_MAILUSER if they are in the group mailuser, (*12)

The Versions

09/12 2013
06/12 2013

0.3.1

0.3.1.0

Symfony LCStudiosLdapBundle

  Sources   Download

06/12 2013

0.3.0

0.3.0.0

Symfony LCStudiosLdapBundle

  Sources   Download

11/11 2013

0.2.0

0.2.0.0

Symfony MayflowerLdapBundle

  Sources   Download

09/10 2013

0.1.0

0.1.0.0

Symfony MayflowerLdapBundle

  Sources   Download