[Freeipa-users] The -e skip_version_check=1 with 4.2 client against 6.4-based server

Jan Pazdziora jpazdziora at redhat.com
Mon Jan 11 19:03:00 UTC 2016


On Mon, Jan 11, 2016 at 07:05:16PM +0100, Martin Basti wrote:
> On 11.01.2016 16:57, Jan Pazdziora wrote:
> >
> >We try to call the ipa commands against old FreeIPA server version,
> >taking advantage of the
> >
> >	-e skip_version_check=1
> >
> >option added by
> >
> >	https://fedorahosted.org/freeipa/ticket/4768
> >
> >[root at centos72-20160110 ~]# /usr/bin/ipa user-find
> >ipa: ERROR: 2.156 client incompatible with 2.49 server at u'https://aab-ipaserver.example.com/ipa/xml'
> >
> >[root at centos72-20160110 ~]# /usr/bin/ipa -e skip_version_check=1 user-find
> >ipa: ERROR: 2.51 client incompatible with 2.49 server at u'https://aab-ipaserver.example.com/ipa/xml'
> >
> >Alas, it seems that skip_version_check=1 sets the version to 2.51
> >which is still too new to the 2.49 version of the 6.4 based-server
> >with ipa-server-3.0.0-42.el6.x86_64.
> >
> >Is this behaviour expected? Why does it force a particular value (2.51)
> >rather than ignoring the difference altogether?
> >
> >I have verified that the option works on Fedora client against older
> >Fedora server (but I did not try ipa-server-3.0.0 there).
>
> With API version 2.52 IPA started to use capabilities, which allows us to
> handle changes in API in compatible way.

So for API version 2.52+, why is that option needed there at all?

> So only with version 2.51 (last
> version without capabilities) we can guarantee that it will work. Server may
> not work with older API version than 2.51, because changes in API may be
> incompatible.

The fact that the calls might not work was an expected part of that
ticket -- that "proceed at own risk". So it looks like something else
was implemented that what we thought would be the result.

That makes it rather unfortunate because we cannot use this
option / approach when talking from newer clients to
RHEL 6 / CentOS 6 servers. Do we plan to have some option for these
setups?

-- 
Jan Pazdziora
Senior Principal Software Engineer, Identity Management Engineering, Red Hat




More information about the Freeipa-users mailing list