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

Latest commit

 

History

History
74 lines (60 loc) · 1.79 KB

UPGRADE-2.0.md

File metadata and controls

74 lines (60 loc) · 1.79 KB

UPGRADE FROM 1.5 to 2.0

  • config.yml has changed:

    Before:

    # app/config/config.yml
    fr3d_ldap:
        client:
        version: 3

    After:

    # app/config/config.yml
    fr3d_ldap:
        driver:
        bindRequiredDn: true
        #version don't exists
  • If you want use the legacy (deprecated) old driver

    # app/config/config.yml
    fr3d_ldap:
        #...
        service:
            ldap_driver: fr3d_ldap.ldap_driver.legacy
  • LdapManager::hydrate() signature has changed

    Before:

    use FR3D\LdapBundle\Model\UserInterface;
    
    protected function hydrate(LdapUserInterface $user, array $entry)

    After:

    use Symfony\Component\Security\Core\User\UserInterface;
    
    protected function hydrate(UserInterface $user, array $entry)
  • service fr3d_ldap.client id has changed

    Before:

    <service id="foo.ldap.ldap_manager" class="Foo\BarBundle\Ldap\LdapManager">
        <argument type="service" id="fr3d_ldap.client" />
        <argument type="service" id="fr3d_ldap.user_manager" />
        <argument>%fr3d_ldap.ldap_manager.parameters%</argument>
    </service>

    After:

    <service id="foo.ldap.ldap_manager" class="Foo\BarBundle\Ldap\LdapManager">
        <argument type="service" id="fr3d_ldap.ldap_driver" />
        <argument type="service" id="fr3d_ldap.user_manager" />
        <argument>%fr3d_ldap.ldap_manager.parameters%</argument>
    </service>
  • checkAuthentication() now reauthenticate current user using token getCredentials() instead getPassword()

    Turn off erase_credentials in application security.yml:

    # app/config/security.yml
    erase_credentials: false