summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Metadata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Metadata.py b/src/lib/Bcfg2/Server/Plugins/Metadata.py
index baa2bd0be..2d095ed0a 100644
--- a/src/lib/Bcfg2/Server/Plugins/Metadata.py
+++ b/src/lib/Bcfg2/Server/Plugins/Metadata.py
@@ -1054,6 +1054,8 @@ class Metadata(Bcfg2.Server.Plugin.Metadata,
def AuthenticateConnection(self, cert, user, password, address):
"""This function checks auth creds."""
+ if not isinstance(user, str):
+ user = user.decode('utf-8')
if cert:
id_method = 'cert'
certinfo = dict([x[0] for x in cert['subject']])