diff options
author | Robin Appelman <robin@icewind.nl> | 2021-01-25 21:06:07 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-03-31 15:23:33 +0200 |
commit | 65b78515bd5864eb456c0717102a2b6eed7245cc (patch) | |
tree | 3481dfb873d7725395b1e334259083902469a87d /lib/public/LDAP | |
parent | 91ae7f22b0e796a8eba90f3de0ead750b685e793 (diff) | |
download | nextcloud-server-65b78515bd5864eb456c0717102a2b6eed7245cc.tar.gz nextcloud-server-65b78515bd5864eb456c0717102a2b6eed7245cc.zip |
make ILDAPProviderFactory usable when there is no ldap setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/LDAP')
-rw-r--r-- | lib/public/LDAP/ILDAPProviderFactory.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/public/LDAP/ILDAPProviderFactory.php b/lib/public/LDAP/ILDAPProviderFactory.php index f005cf07885..fe7824d8318 100644 --- a/lib/public/LDAP/ILDAPProviderFactory.php +++ b/lib/public/LDAP/ILDAPProviderFactory.php @@ -44,7 +44,7 @@ interface ILDAPProviderFactory { * @since 11.0.0 */ public function __construct(IServerContainer $serverContainer); - + /** * creates and returns an instance of the ILDAPProvider * @@ -52,4 +52,12 @@ interface ILDAPProviderFactory { * @since 11.0.0 */ public function getLDAPProvider(); + + /** + * Check if an ldap provider is available + * + * @return bool + * @since 21.0.0 + */ + public function isAvailable(): bool; } |