Skip to content
Snippets Groups Projects
Commit cc01bf7a authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Recuperation de la bonne config

parent bb1e9370
No related branches found
No related tags found
No related merge requests found
Pipeline #18667 passed
......@@ -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;
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment