diff options
author | rcritten@redhat.com <rcritten@redhat.com> | 2007-08-24 15:42:56 -0400 |
---|---|---|
committer | rcritten@redhat.com <rcritten@redhat.com> | 2007-08-24 15:42:56 -0400 |
commit | 861cda3cb5256a177845029ddf1900f51271b56c (patch) | |
tree | 7cf9e2004705e129511d8c25ac69232af8901317 /ipa-admintools/ipa-usermod | |
parent | 240a99b6f35fe7a7de37c83e69471b84298d0f56 (diff) | |
download | freeipa.git-861cda3cb5256a177845029ddf1900f51271b56c.tar.gz freeipa.git-861cda3cb5256a177845029ddf1900f51271b56c.tar.xz freeipa.git-861cda3cb5256a177845029ddf1900f51271b56c.zip |
Initial support for Groups
Create separate object for Users and Groups (using same base class)
Check for uniqueness before adding new users and groups
Remove user_container from everything but add operations
Abstract out a number of functions that are common across users and groups
Make sure all strings passed in to be in a filter are checked
Add new error message: No modifications specified
Diffstat (limited to 'ipa-admintools/ipa-usermod')
-rw-r--r-- | ipa-admintools/ipa-usermod | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ipa-admintools/ipa-usermod b/ipa-admintools/ipa-usermod index 3c9f8adc..0c61f409 100644 --- a/ipa-admintools/ipa-usermod +++ b/ipa-admintools/ipa-usermod @@ -54,7 +54,11 @@ def main(): usage() client = ipaclient.IPAClient() - user = client.get_user_by_uid(args[1]) + try: + user = client.get_user_by_uid(args[1]) + except ipa.ipaerror.IPAError, e: + print "%s" % e.message + return 1 if options.gecos: user.setValue('gecos', options.gecos) |