Add constant to enable/disable database group provider
This commit is contained in:
@@ -26,7 +26,10 @@ class GroupProvider implements ServiceProviderInterface
|
|||||||
public function register(Container $container)
|
public function register(Container $container)
|
||||||
{
|
{
|
||||||
$container['groupManager'] = new GroupManager;
|
$container['groupManager'] = new GroupManager;
|
||||||
$container['groupManager']->register(new DatabaseBackendGroupProvider($container));
|
|
||||||
|
if (DB_GROUP_PROVIDER) {
|
||||||
|
$container['groupManager']->register(new DatabaseBackendGroupProvider($container));
|
||||||
|
}
|
||||||
|
|
||||||
if (LDAP_AUTH && LDAP_GROUP_PROVIDER) {
|
if (LDAP_AUTH && LDAP_GROUP_PROVIDER) {
|
||||||
$container['groupManager']->register(new LdapBackendGroupProvider($container));
|
$container['groupManager']->register(new LdapBackendGroupProvider($container));
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ defined('DB_HOSTNAME') or define('DB_HOSTNAME', 'localhost');
|
|||||||
defined('DB_NAME') or define('DB_NAME', 'kanboard');
|
defined('DB_NAME') or define('DB_NAME', 'kanboard');
|
||||||
defined('DB_PORT') or define('DB_PORT', null);
|
defined('DB_PORT') or define('DB_PORT', null);
|
||||||
|
|
||||||
|
// Database backend group provider
|
||||||
|
defined('DB_GROUP_PROVIDER') or define('DB_GROUP_PROVIDER', true);
|
||||||
|
|
||||||
// LDAP configuration
|
// LDAP configuration
|
||||||
defined('LDAP_AUTH') or define('LDAP_AUTH', false);
|
defined('LDAP_AUTH') or define('LDAP_AUTH', false);
|
||||||
defined('LDAP_SERVER') or define('LDAP_SERVER', '');
|
defined('LDAP_SERVER') or define('LDAP_SERVER', '');
|
||||||
|
|||||||
Reference in New Issue
Block a user