From deaf029023e4037ad53d17b9e48562845b3c1197 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 1 Apr 2011 15:53:56 -0400 Subject: Change default gecos from uid to first and last name. ticket 1146 --- ipalib/plugins/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib') diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index 891a73a87..0f6fb5870 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -137,7 +137,7 @@ class user(LDAPObject): ), Str('gecos?', label=_('GECOS field'), - default_from=lambda uid: uid, + default_from=lambda givenname, sn: '%s %s' % (givenname, sn), autofill=True, ), Str('loginshell?', -- cgit