2021-01-25 21:06:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2021-06-04 21:52:51 +02:00
|
|
|
|
2021-01-25 21:06:07 +01:00
|
|
|
/**
|
2024-05-23 09:26:56 +02:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-01-25 21:06:07 +01:00
|
|
|
*/
|
|
|
|
namespace OC\LDAP;
|
|
|
|
|
|
|
|
use OCP\IServerContainer;
|
|
|
|
use OCP\LDAP\ILDAPProviderFactory;
|
|
|
|
|
|
|
|
class NullLDAPProviderFactory implements ILDAPProviderFactory {
|
|
|
|
public function __construct(IServerContainer $serverContainer) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getLDAPProvider() {
|
|
|
|
throw new \Exception('No LDAP provider is available');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isAvailable(): bool {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|