From ronaldw at ronzo.at Tue Nov 30 10:29:03 2021 Content-Type: multipart/mixed; boundary="===============4718043239838958738==" MIME-Version: 1.0 From: Ronald Wimmer To: freeipa-users at lists.fedorahosted.org Subject: [Freeipa-users] Re: Python ipalib Date: Tue, 30 Nov 2021 11:27:57 +0100 Message-ID: <664641a6-7b3d-d748-c8b0-00a0b9483a19@ronzo.at> In-Reply-To: 4f0b6645-42ea-0937-bfb3-178bd0df3198@ronzo.at --===============4718043239838958738== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable What I dislike is that the output of a very simple curl command told me = that there was a problem with insufficient access: curl --negotiate https://ipa07.linux.mydomain.at/ipa/session/json 401 Unauthorized

Invalid Authentication

Insufficient access: Invalid credentials

whereas the ipalib error was not that specific myuser(a)someserver:ansible_tower $ ./ipaInventory.py --list Traceback (most recent call last): File "./ipaInventory.py", line 121, in api =3D initialize() File "./ipaInventory.py", line 44, in initialize api.finalize() File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 740, = in finalize self.__do_if_not_done('load_plugins') File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 431, = in __do_if_not_done getattr(self, name)() File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 619, = in load_plugins for package in self.packages: File "/usr/lib/python2.7/site-packages/ipalib/__init__.py", line 954, = in packages ipaclient.remote_plugins.get_package(self), File = "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/__init__.py", = line 134, in get_package plugins =3D schema.get_package(server_info, client) File = "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", = line 553, in get_package schema =3D Schema(client) File = "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", = line 401, in __init__ fingerprint, ttl =3D self._fetch(client, ignore_cache=3Dread_failed) File = "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", = line 413, in _fetch client.connect(verbose=3DFalse) File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 69, = in connect conn =3D self.create_connection(*args, **kw) File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 1115, in = create_connection error=3D', '.join(urls)) ipalib.errors.NetworkError: cannot connect to 'any of the configured = servers': https://ipa07.linux.mydomain.at/ipa/session/json, ... --===============4718043239838958738==--