Commit cc01bf7a authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Recuperation de la bonne config

parent bb1e9370
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ class LdapServiceFactory implements FactoryInterface

        $simpleIdentityProvider->setDefaultRole($config['default_role']);
        $simpleIdentityProvider->setAuthenticatedRole($config['authenticated_role']);
        $usernamefield = $config['unicaen-auth']['local']['ldap']['username'];
        
        $usernamefield = $container->get('Config')['unicaen-auth']['local']['ldap']['username'];
        $simpleIdentityProvider->setUsernamefield($usernamefield);

        return $simpleIdentityProvider;
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ class UserContextFactory
        // mais c'est impossible pour l'instant car il y a un cycle dans les dépendances entre services qui
        // provoque une boucle infinie.
        //
        $usernamefield = $config['unicaen-auth']['local']['ldap']['username'];
        $usernamefield = $container->get('Config')['unicaen-auth']['local']['ldap']['username'];
        $service->setUsernamefield($usernamefield);
        return $service;
    }