Merge pull request #10658 from erinn/freeipa_compat

Changes to api in FreeIPA > 4.0 compatibility fix.
pull/10644/merge
Brian Coca 10 years ago
commit fe2cc6dd02

@ -13,7 +13,11 @@ def initialize():
api.bootstrap(context='cli')
api.finalize()
api.Backend.xmlclient.connect()
try:
api.Backend.rpcclient.connect()
except AttributeError:
#FreeIPA < 4.0 compatibility
api.Backend.xmlclient.connect()
return api

Loading…
Cancel
Save