ipa-managed-entries: use server-mode API

During LDAP connection management refactoring the ad-hoc ldap connection
in `ipa-managed-entries` was replaced by calls to ldap2 backend without
updating API initialization.

https://pagure.io/freeipa/issue/6735

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
Martin Babinsky 2017-03-08 12:16:31 +01:00 committed by Tomas Krizek
parent fda22c3344
commit 715367506b
No known key found for this signature in database
GPG Key ID: 22A2A94B5E49415A

View File

@ -73,7 +73,11 @@ def main():
sys.exit("Unrecognized action [" + args[0] + "]")
standard_logging_setup(None, debug=options.debug)
api.bootstrap(context='cli', debug=options.debug, confdir=paths.ETC_IPA)
api.bootstrap(
context='cli',
in_server=True,
debug=options.debug,
confdir=paths.ETC_IPA)
api.finalize()
api.Backend.ldap2.connect(bind_pw=options.dirman_password)