From 5769159cf9e886e48c02162aa323dbef95a42a41 Mon Sep 17 00:00:00 2001 From: vcerenu Date: Mon, 18 Sep 2023 12:05:29 -0300 Subject: [PATCH] change RBAC database procedure --- build-docker-images/wazuh-manager/config/create_user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-docker-images/wazuh-manager/config/create_user.py b/build-docker-images/wazuh-manager/config/create_user.py index e2a89325..3bb6bb6c 100644 --- a/build-docker-images/wazuh-manager/config/create_user.py +++ b/build-docker-images/wazuh-manager/config/create_user.py @@ -13,7 +13,7 @@ try: - from wazuh.rbac.orm import create_rbac_db + from wazuh.rbac.orm import check_database_integrity from wazuh.security import ( create_user, get_users, @@ -69,7 +69,7 @@ def disable_user(uid): username, password = read_user_file() # create RBAC database - create_rbac_db() + check_database_integrity() initial_users = db_users() if username not in initial_users: