Optimized RBAC via LDAP

This commit is contained in:
2025-07-04 08:03:27 +02:00
parent a9f55579a2
commit ee0561db72
25 changed files with 316 additions and 111 deletions

View File

@@ -147,9 +147,13 @@ if __name__ == "__main__":
log_file = None
if log_enabled:
log_file_path = os.path.join(script_dir, 'logfile.log')
log_dir = os.path.join(script_dir, 'logs')
os.makedirs(log_dir, exist_ok=True)
timestamp = datetime.now().strftime('%Y%m%dT%H%M%S')
log_file_path = os.path.join(log_dir, f'{timestamp}.log')
log_file = open(log_file_path, 'a', encoding='utf-8')
try:
if log_enabled:
# Use a pseudo-terminal to preserve color formatting