diff options
author | Martin Kosek <mkosek@redhat.com> | 2014-04-01 16:23:14 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-04-02 08:11:36 +0200 |
commit | 66fb4d5e849a049e95d3ef4fcf2b86217488634d (patch) | |
tree | a462c0a26058985224c9e79d61945036415d43f5 /ipa-client | |
parent | 0f626a9cc870ba0bdcc1322d765687b0e597c26c (diff) | |
download | freeipa-66fb4d5e849a049e95d3ef4fcf2b86217488634d.tar.gz freeipa-66fb4d5e849a049e95d3ef4fcf2b86217488634d.tar.xz freeipa-66fb4d5e849a049e95d3ef4fcf2b86217488634d.zip |
Make ipa-client-automount backwards compatible
ipa-client-automount calls automountlocation-show command during the
process. Unfortunately, FreeIPA commands are forward compatible only
and thus fail the installer.
Similarly to ipa-client-install, call XML-RPC interface directly
with version fixed to 2.0 (command was already available at that
version) to fix the failure.
https://fedorahosted.org/freeipa/ticket/4290
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Diffstat (limited to 'ipa-client')
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-automount | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ipa-client/ipa-install/ipa-client-automount b/ipa-client/ipa-install/ipa-client-automount index 6cf79a7b6..2923a8f46 100755 --- a/ipa-client/ipa-install/ipa-client-automount +++ b/ipa-client/ipa-install/ipa-client-automount @@ -440,7 +440,12 @@ def main(): except errors.KerberosError, e: sys.exit('Cannot connect to the server due to ' + str(e)) try: - api.Command['automountlocation_show'](unicode(options.location)) + # Use the RPC directly so older servers are supported + result = api.Backend.xmlclient.forward( + 'automountlocation_show', + unicode(options.location), + version=u'2.0', + ) except errors.VersionError, e: sys.exit('This client is incompatible: ' + str(e)) except errors.NotFound: |