summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2010-11-22 15:22:37 +0100
committerAdam Young <ayoung@redhat.com>2010-12-03 10:18:23 -0500
commit188ca3a360b7d22cd4c40afcba87912cc892aa01 (patch)
treebb3bf8f8307d8e294f3070617dcad3676bd350c6
parentfabc522f64f68703f1e39ac0a8cf9580c411ef3a (diff)
downloadfreeipa-188ca3a360b7d22cd4c40afcba87912cc892aa01.tar.gz
freeipa-188ca3a360b7d22cd4c40afcba87912cc892aa01.tar.xz
freeipa-188ca3a360b7d22cd4c40afcba87912cc892aa01.zip
Added some fields to user object
Some fields were missing from user object, this change adds them along with their l10n https://fedorahosted.org/freeipa/ticket/305
-rw-r--r--ipalib/plugins/user.py48
1 files changed, 46 insertions, 2 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py
index 1bbb9b1a..9c89c4da 100644
--- a/ipalib/plugins/user.py
+++ b/ipalib/plugins/user.py
@@ -95,9 +95,24 @@ class user(LDAPObject):
cli_name='last',
label=_('Last name'),
),
+ Str('cn?',
+ label=_('Full name'),
+ default_from=lambda givenname, sn: '%s %s' % (givenname, sn),
+ autofill=True,
+ ),
+ Str('displayname?',
+ label=_('Display name'),
+ default_from=lambda givenname, sn: '%s %s' % (givenname, sn),
+ autofill=True,
+ ),
+ Str('initials?',
+ label=_('Initials'),
+ default_from=lambda givenname, sn: '%c%c' % (givenname[0], sn[0]),
+ autofill=True,
+ ),
Str('homedirectory?',
cli_name='homedir',
- label=('Home directory'),
+ label=_('Home directory'),
default_from=lambda uid: '/home/%s' % uid,
),
Str('gecos?',
@@ -135,10 +150,25 @@ class user(LDAPObject):
autofill=True,
default=999,
),
+ Int('gidnumber?',
+ label=_('GID'),
+ doc=_('Group ID Number'),
+ default_from=lambda uid: uid,
+ ),
Str('street?',
cli_name='street',
label=_('Street address'),
),
+ Str('location?',
+ cli_name='city',
+ label=_('City'),
+ ),
+ Str('state?',
+ label=_('State'),
+ ),
+ Int('postalcode?',
+ label=_('ZIP'),
+ ),
Str('telephonenumber*',
cli_name='phone',
label=_('Telephone Number') ),
@@ -148,7 +178,21 @@ class user(LDAPObject):
label=_('Pager Number') ),
Str('facsimiletelephonenumber*',
cli_name='fax',
- label=_('Fax Number') ),
+ label=_('Fax Number'),
+ ),
+ Str('ou?',
+ cli_name='orgunit',
+ label=_('Org. Unit'),
+ ),
+ Str('title?',
+ label=_('Job Title'),
+ ),
+ Str('manager?',
+ label=_('Manager'),
+ ),
+ Str('carlicense?',
+ label=_('Car License'),
+ ),
Bool('nsaccountlock?',
label=_('Account disabled'),
flags=['no_create', 'no_update', 'no_search'],