Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Releases: Maks3w/FR3DLdapBundle

Welcome Symfony v4. Dropped support of Symfony 2

23 May 09:24
735b3e5
Compare
Choose a tag to compare

This release update the stack of dependecies to current supported versions (PHP >=7.1and Symfony >= 3.4)

Breaking changes

  • Form validator is now compatible with Symfony 3.4 classes

v3.0.2

20 Mar 09:26
2309156
Compare
Choose a tag to compare
  • [FIX] Issue when processing exception. Kudos @slaci

Fix password leak

14 Feb 23:19
08b058b
Compare
Choose a tag to compare

[FIX] Password could be exposed throught debug logs. Kudos @fogs

Welcome custom hydrators!

12 Feb 17:48
Compare
Choose a tag to compare

Custom hydrators replaces the hardcoded and usuallly customized LdapManager::hydrate() method.

Read Resources/doc/cookbook/custom_hydrator.md for to see how this new subcomponent helps you to fine customization the User hydration with your LDAP data.

CHANGELOG v3.0.0

Ldap driver:

  • [BC Break] Remove support for PHP 5.3 and 5.4
  • [BC Break] Remove legacy Ldap driver declared as deprecated in 2.0.0.
  • [BC Break] hydrate() method in LdapManager has been moved to Model\LegacyHydrator.php.
    See Create a custom hydrator for more details.
  • [BC Break] This bundle is now PSR-3 (Logger) compliant. Typehints has been updated in favor of Psr\Log\LoggerInterface.
  • [BC Break] Remove FR3D\LdapBundle\Ldap\Converter
  • [BC Break] Remove escapeValue() and unescapeValue() methods from LdapManagerInterface and LdapManager. Now use
    PHP 5.6 ldap_escape() polyfill.

Config:

  • [BC Break] Added fr3d_ldap.user.usernameAttribute for indicate the attribute which holds the username.
    Previously was the first entry in attributes

Validator:

  • Removed unused property option

UPGRADE v3.0.0

  • Define the attribute which hold the username value if was different than uid.

    Before:

    # app/config/config.yml
    fr3d_ldap:
        user:
            attributes:
                - { ldap_attr: customUID, user_method: setUsername }

    After:

    # app/config/config.yml
    fr3d_ldap:
        user:
            usernameAttribute: customUID # Add this line
            attributes:
                - { ldap_attr: customUID, user_method: setUsername }
  • If you was using the legacy (deprecated) old driver remove the ldap_driver setting and use the default one.

    # app/config/config.yml
    fr3d_ldap:
        service:
            ldap_driver: fr3d_ldap.ldap_driver.legacy # Remove this line.