]> git.ipfire.org Git - ipfire.org.git/commitdiff
ldap: Decode anything coming from server
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Oct 2018 11:20:55 +0000 (12:20 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Oct 2018 11:20:55 +0000 (12:20 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/accounts.py

index 432276f4c1e4a6bd839fb4ebe770d46b8341278b..26210053b20025df2f81f65647c75755d24e59cd 100644 (file)
@@ -161,7 +161,7 @@ class Account(Object):
 
                res = self.attributes.get(attr, [])
                if res:
-                       return res[0]
+                       return res[0].decode()
 
        def get(self, key):
                try: