diff options
Diffstat (limited to 'ipalib/plugins/migration.py')
-rw-r--r-- | ipalib/plugins/migration.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/plugins/migration.py b/ipalib/plugins/migration.py index d64aeaca..55a21572 100644 --- a/ipalib/plugins/migration.py +++ b/ipalib/plugins/migration.py @@ -30,7 +30,8 @@ import re from ipalib import api, errors, output, uuid from ipalib import Command, List, Password, Str from ipalib.cli import to_cli -from ipaserver.plugins.ldap2 import ldap2 +if api.env.in_server and api.env.context in ['lite', 'server']: + from ipaserver.plugins.ldap2 import ldap2 from ipalib import _ from ipalib.text import Gettext # FIXME: remove once the other Gettext FIXME is removed |