aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-30 15:09:27 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-30 15:09:27 +0200
commit12e4484dbab092fb605d87ee29fe99ace1a75e7d (patch)
tree8a54136c1d5b620dc79f4a6d8ec336150363f2dd /lib
parent75f7287b5ed7251599fd6c67ff3ae319f6a3dfc2 (diff)
downloadnextcloud-server-12e4484dbab092fb605d87ee29fe99ace1a75e7d.tar.gz
nextcloud-server-12e4484dbab092fb605d87ee29fe99ace1a75e7d.zip
ensure that factoryClass exisits before instantiation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 207c53bdae3..03d6a4146ed 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -1031,7 +1031,7 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerService(ILDAPProviderFactory::class, function (ContainerInterface $c) {
$config = $c->get(\OCP\IConfig::class);
$factoryClass = $config->getSystemValue('ldapProviderFactory', null);
- if (is_null($factoryClass)) {
+ if (is_null($factoryClass) || !class_exists($factoryClass)) {
return new NullLDAPProviderFactory($this);
}
/** @var \OCP\LDAP\ILDAPProviderFactory $factory */