From 67d6624c2faee121d1996d51e23a2a3879b8684c Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 8 Dec 2020 09:48:02 +0100 Subject: [PATCH] fix LDAP-based HTTP Basic Auth entry point registration --- .../Security/Factory/HttpBasicLdapFactory.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/HttpBasicLdapFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/HttpBasicLdapFactory.php index c1fac1a63108b..4f488e970b3bd 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/HttpBasicLdapFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/HttpBasicLdapFactory.php @@ -45,7 +45,14 @@ public function create(ContainerBuilder $container, string $id, array $config, s ; // entry point - $entryPointId = $this->registerEntryPoint($container, $id, $config, $defaultEntryPoint); + $entryPointId = $defaultEntryPoint; + + if (null === $entryPointId) { + $entryPointId = 'security.authentication.basic_entry_point.'.$id; + $container + ->setDefinition($entryPointId, new ChildDefinition('security.authentication.basic_entry_point')) + ->addArgument($config['realm']); + } if (!empty($config['query_string'])) { if ('' === $config['search_dn'] || '' === $config['search_password']) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy