summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 1bbb9b1ae..9c89c4da7 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'],