diff --git a/usr/lib/python3/dist-packages/linuxmusterTools/samba_util/log.py b/usr/lib/python3/dist-packages/linuxmusterTools/samba_util/log.py index 0965b40..d8fb0ea 100644 --- a/usr/lib/python3/dist-packages/linuxmusterTools/samba_util/log.py +++ b/usr/lib/python3/dist-packages/linuxmusterTools/samba_util/log.py @@ -23,7 +23,7 @@ def check_audit_level(): def format_log_data(entry): data = re.findall(r"\[([^\]]*)\]", entry) - if "@" in data[2]: + if len(data) > 1 and "Kerberos" in data[0] and "@" in data[2]: date = datetime.strptime(data[3].split(".")[0], "%a, %d %b %Y %H:%M:%S") return { 'user': data[2].split("@")[0].strip('\\\\'),