summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-21 16:32:30 -0400
committerRob Crittenden <rcritten@redhat.com>2008-10-21 16:34:50 -0400
commite47d939f3fab8381cbc232a1c771e87f42aa41ff (patch)
tree5d3e04d1bcd2508285cdfc51853c2fc1d34f871b
parentc41cf8b06838e5b9aa3428020b9dc8c895b1bfd6 (diff)
downloadfreeipa.git-e47d939f3fab8381cbc232a1c771e87f42aa41ff.tar.gz
freeipa.git-e47d939f3fab8381cbc232a1c771e87f42aa41ff.tar.xz
freeipa.git-e47d939f3fab8381cbc232a1c771e87f42aa41ff.zip
Update the command-line options to more closely match v1
-rw-r--r--ipalib/plugins/f_user.py30
1 files changed, 24 insertions, 6 deletions
diff --git a/ipalib/plugins/f_user.py b/ipalib/plugins/f_user.py
index 972ee075..70952b29 100644
--- a/ipalib/plugins/f_user.py
+++ b/ipalib/plugins/f_user.py
@@ -55,11 +55,11 @@ class user(frontend.Object):
takes_params = (
Param('givenname',
cli_name='first',
- doc='User first name',
+ doc='User\'s first name',
),
Param('sn',
cli_name='last',
- doc='User last name',
+ doc='User\'s last name',
),
Param('uid',
cli_name='user',
@@ -68,22 +68,40 @@ class user(frontend.Object):
normalize=lambda value: value.lower(),
),
Param('gecos?',
- doc='GECOS field',
+ doc='Set the GECOS field',
default_from=lambda uid: uid,
),
Param('homedirectory?',
cli_name='home',
- doc='Path of user home directory',
+ doc='Set the User\'s home directory',
default_from=lambda uid: '/home/%s' % uid,
),
Param('loginshell?',
cli_name='shell',
default=u'/bin/sh',
- doc='Login shell',
+ doc='Set User\'s Login shell',
),
Param('krbprincipalname?', cli_name='principal',
- default_from=lambda uid: '%s@EXAMPLE.COM' % uid,
+ doc='Set User\'s Kerberos Principal name',
+ default_from=lambda uid: '%s@%s' % (uid, api.env.realm),
),
+ Param('mailaddress?',
+ cli_name='mail',
+ doc='Set User\'s e-mail address',
+ ),
+ Param('userpassword?',
+ cli_name='password',
+ doc='Set User\'s password',
+ ),
+ Param('groups?',
+ doc='Add account to one or more groups (comma-separated)',
+ ),
+ Param('uidnumber?',
+ cli_name='uid',
+ type=ipa_types.Int(),
+ doc='The uid to use for this user. If not included one is automatically set.',
+ ),
+
)
api.register(user)