summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/f_user.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-13 20:31:10 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-13 20:31:10 -0600
commitb6dcd183a66ca6056f9d23637de0f12aee15efcc (patch)
treec83a0c76e0f985d506f3462729defcfb53a90562 /ipalib/plugins/f_user.py
parent8674086b8536f64947ca8cdb97d7a1cd3bf1c684 (diff)
downloadfreeipa-b6dcd183a66ca6056f9d23637de0f12aee15efcc.tar.gz
freeipa-b6dcd183a66ca6056f9d23637de0f12aee15efcc.tar.xz
freeipa-b6dcd183a66ca6056f9d23637de0f12aee15efcc.zip
CLI now maps Param.cli_name to Param.name
Diffstat (limited to 'ipalib/plugins/f_user.py')
-rw-r--r--ipalib/plugins/f_user.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipalib/plugins/f_user.py b/ipalib/plugins/f_user.py
index ff459b3da..22fb8a278 100644
--- a/ipalib/plugins/f_user.py
+++ b/ipalib/plugins/f_user.py
@@ -55,9 +55,10 @@ class user(frontend.Object):
User object.
"""
takes_params = (
- 'givenname',
- 'sn',
+ Param('givenname', cli_name='firstname'),
+ Param('sn', cli_name='lastname'),
Param('uid',
+ cli_name='user',
primary_key=True,
default_from=lambda givenname, sn: givenname[0] + sn,
normalize=lambda value: value.lower(),
@@ -78,7 +79,7 @@ class user_add(crud.Add):
"""args[0] = uid of the user to add
kw{container} is the location in the DIT to add the user, not
required
- kw otherwise contains all the attributes
+ kw otherwise contains all the attributes
"""
# FIXME: ug, really?
if not kw.get('container'):
@@ -296,4 +297,3 @@ class user_unlock(frontend.Command):
if result:
print "User unlocked"
api.register(user_unlock)
-