diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-10-15 16:50:46 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-10-15 16:50:46 -0400 |
commit | 14a33d461960b4183ac25a83a8ef9f375fd75d49 (patch) | |
tree | dff646f4e2203d8eb396c0d2fb7f8c5c4b302496 /ipalib/plugins/f_user.py | |
parent | 3268b65ae0dfc7ffdeba685e8e2515a437bf092e (diff) | |
download | freeipa.git-14a33d461960b4183ac25a83a8ef9f375fd75d49.tar.gz freeipa.git-14a33d461960b4183ac25a83a8ef9f375fd75d49.tar.xz freeipa.git-14a33d461960b4183ac25a83a8ef9f375fd75d49.zip |
Fix some remaining merge issues and don't use forward() in user-*lock()
Diffstat (limited to 'ipalib/plugins/f_user.py')
-rw-r--r-- | ipalib/plugins/f_user.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ipalib/plugins/f_user.py b/ipalib/plugins/f_user.py index c2bb7b6f..ed88ef9f 100644 --- a/ipalib/plugins/f_user.py +++ b/ipalib/plugins/f_user.py @@ -154,8 +154,6 @@ class user_add(crud.Add): # some required objectclasses kw['objectClass'] = config.get('ipauserobjectclasses') -<<<<<<< HEAD:ipalib/plugins/f_user.py -======= return ldap.create(**kw) def output_for_cli(self, ret): @@ -288,9 +286,8 @@ class user_lock(frontend.Command): uid = args[0] user = servercore.get_user_by_uid(uid, ['dn', 'uid']) return servercore.mark_entry_inactive(user['dn']) - def forward(self, *args, **kw): - result = super(user_lock, self).forward(*args, **kw) - if result: + def output_for_cli(self, ret): + if ret: print "User locked" api.register(user_lock) @@ -303,8 +300,7 @@ class user_unlock(frontend.Command): uid = args[0] user = servercore.get_user_by_uid(uid, ['dn', 'uid']) return servercore.mark_entry_active(user['dn']) - def forward(self, *args, **kw): - result = super(user_unlock, self).forward(*args, **kw) - if result: + def output_for_cli(self, ret): + if ret: print "User unlocked" api.register(user_unlock) |