Merge pull request #10658 from erinn/freeipa_compat
Changes to api in FreeIPA > 4.0 compatibility fix.
This commit is contained in:
commit
fe2cc6dd02
1 changed files with 5 additions and 1 deletions
|
@ -13,6 +13,10 @@ def initialize():
|
|||
|
||||
api.bootstrap(context='cli')
|
||||
api.finalize()
|
||||
try:
|
||||
api.Backend.rpcclient.connect()
|
||||
except AttributeError:
|
||||
#FreeIPA < 4.0 compatibility
|
||||
api.Backend.xmlclient.connect()
|
||||
|
||||
return api
|
||||
|
|
Loading…
Reference in a new issue