summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/cmd_user_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/cli/cmd_user_info.py')
-rw-r--r--pykolab/cli/cmd_user_info.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pykolab/cli/cmd_user_info.py b/pykolab/cli/cmd_user_info.py
index c120353..d7b83a6 100644
--- a/pykolab/cli/cmd_user_info.py
+++ b/pykolab/cli/cmd_user_info.py
@@ -51,5 +51,10 @@ def execute(*args, **kw):
print >> sys.stderr, _("No such user %s") % (user)
sys.exit(0)
+ unic_attrs = ['displayname', 'givenname', 'cn', 'sn', 'ou', 'entrydn']
+
for (k,v) in user_info.iteritems():
- print "%s: %r" % (k,v)
+ if k in unic_attrs:
+ print "%s: %s" % (k,v)
+ else:
+ print "%s: %r" % (k,v)