Add the option "access_control_path" to server config.

This commit is contained in:
Vitaly Baranov 2020-04-05 19:39:47 +03:00
parent d064ddfe13
commit bc3e2cb48c
3 changed files with 4 additions and 5 deletions

View File

@ -128,6 +128,9 @@
<!-- Directory with user provided files that are accessible by 'file' table function. -->
<user_files_path>/var/lib/clickhouse/user_files/</user_files_path>
<!-- Path to folder where users and roles created by SQL commands are stored. -->
<access_control_path>/var/lib/clickhouse/access/</access_control_path>
<!-- Path to configuration file with users, access rights, profiles of settings, quotas. -->
<users_config>users.xml</users_config>

View File

@ -1,4 +0,0 @@
<?xml version="1.0"?>
<yandex>
<access_control_path>/var/lib/clickhouse/access</access_control_path>
</yandex>

View File

@ -2,7 +2,7 @@ import pytest
from helpers.cluster import ClickHouseCluster
cluster = ClickHouseCluster(__file__)
instance = cluster.add_instance('instance', config_dir='configs', main_configs=['configs/access_control_path.xml'], stay_alive=True)
instance = cluster.add_instance('instance', config_dir='configs', stay_alive=True)
@pytest.fixture(scope="module", autouse=True)