From 453c344f7f304cd68c00769a257f742976d3a13e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 10 Oct 2019 16:07:34 -0400 Subject: [PATCH] Fix audit log for non root usage with python 3 --- confluent_server/confluent/httpapi.py | 2 +- confluent_server/confluent/sockapi.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index ce36b67a..76313005 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -1,7 +1,7 @@ # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2014 IBM Corporation -# Copyright 2015-2016 Lenovo +# Copyright 2015-2019 Lenovo # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/confluent_server/confluent/sockapi.py b/confluent_server/confluent/sockapi.py index 154adfc2..e6a659e9 100644 --- a/confluent_server/confluent/sockapi.py +++ b/confluent_server/confluent/sockapi.py @@ -1,7 +1,7 @@ # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2014 IBM Corporation -# Copyright 2015-2018 Lenovo +# Copyright 2015-2019 Lenovo # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -222,6 +222,7 @@ def process_request(connection, request, cfm, authdata, authname, skipauth): auditmsg['tenant'] = authdata[3] auditmsg['allowed'] = True if _should_authlog(path, operation): + tlvdata.unicode_dictvalues(auditmsg) auditlog.log(auditmsg) try: if operation == 'start':