diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-04-28 10:15:01 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-03 09:00:34 +0200 |
commit | 4c7be74526bd89ed1b481f3a1ac4bb467ee0ea2c (patch) | |
tree | 3db268df3cfa41bd8a3c4655967e6931428b1ba9 /ipalib/plugins/migration.py | |
parent | 6cfb9d73d9701767d8b76d7ff5bbc080a6be9386 (diff) | |
download | freeipa-4c7be74526bd89ed1b481f3a1ac4bb467ee0ea2c.tar.gz freeipa-4c7be74526bd89ed1b481f3a1ac4bb467ee0ea2c.tar.xz freeipa-4c7be74526bd89ed1b481f3a1ac4bb467ee0ea2c.zip |
ipalib: split off client-side plugin code into ipaclient
Provide client-side overrides for command plugins which implement any of
the client-side `interactive_prompt_callback`, `forward` or
`output_for_cli` methods and move the methods from the original plugins to
the overrides.
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipalib/plugins/migration.py')
-rw-r--r-- | ipalib/plugins/migration.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/ipalib/plugins/migration.py b/ipalib/plugins/migration.py index 0fd2def0f..57d26c982 100644 --- a/ipalib/plugins/migration.py +++ b/ipalib/plugins/migration.py @@ -652,16 +652,6 @@ search results for objects to be migrated have been truncated by the server; migration process might be incomplete\n''') - migration_disabled_msg = _('''\ -Migration mode is disabled. Use \'ipa config-mod\' to enable it.''') - - pwd_migration_msg = _('''\ -Passwords have been migrated in pre-hashed format. -IPA is unable to generate Kerberos keys unless provided -with clear text passwords. All migrated users need to -login at https://your.domain/ipa/migration/ before they -can use their Kerberos accounts.''') - def get_options(self): """ Call get_options of the baseclass and add "exclude" options @@ -927,31 +917,3 @@ can use their Kerberos accounts.''') ) return dict(result=migrated, failed=failed, enabled=True, compat=True) - - def output_for_cli(self, textui, result, ldapuri, bindpw, **options): - textui.print_name(self.name) - if not result['enabled']: - textui.print_plain(self.migration_disabled_msg) - return 1 - if not result['compat']: - textui.print_plain("The compat plug-in is enabled. This can increase the memory requirements during migration. Disable the compat plug-in with \'ipa-compat-manage disable\' or re-run this script with \'--with-compat\' option.") - return 1 - any_migrated = any(result['result'].values()) - textui.print_plain('Migrated:') - textui.print_entry1( - result['result'], attr_order=self.migrate_order, - one_value_per_line=False - ) - for ldap_obj_name in self.migrate_order: - textui.print_plain('Failed %s:' % ldap_obj_name) - textui.print_entry1( - result['failed'][ldap_obj_name], attr_order=self.migrate_order, - one_value_per_line=True, - ) - textui.print_plain('-' * len(self.name)) - if not any_migrated: - textui.print_plain('No users/groups were migrated from %s' % - ldapuri) - return 1 - textui.print_plain(unicode(self.pwd_migration_msg)) - |