Merge pull request #1067 from wazuh/bug/Update-create-user-py-to4.6.0
Fixed create user py script
This commit is contained in:
commit
e12f745991
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user