mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-23 16:13:42 +00:00
change RBAC database procedure
This commit is contained in:
@@ -13,7 +13,7 @@ SPECIAL_CHARS = "@$!%*?&-_"
|
|||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from wazuh.rbac.orm import create_rbac_db
|
from wazuh.rbac.orm import check_database_integrity
|
||||||
from wazuh.security import (
|
from wazuh.security import (
|
||||||
create_user,
|
create_user,
|
||||||
get_users,
|
get_users,
|
||||||
@@ -69,7 +69,7 @@ if __name__ == "__main__":
|
|||||||
username, password = read_user_file()
|
username, password = read_user_file()
|
||||||
|
|
||||||
# create RBAC database
|
# create RBAC database
|
||||||
create_rbac_db()
|
check_database_integrity()
|
||||||
|
|
||||||
initial_users = db_users()
|
initial_users = db_users()
|
||||||
if username not in initial_users:
|
if username not in initial_users:
|
||||||
|
Reference in New Issue
Block a user