#8133 check_client_configuration() no longer works with IPA_CONFDIR
Closed: fixed 2 years ago by cheimes. Opened 2 years ago by cheimes.


The check in check_client_configuration is no longer compatible with systems that don't have a global FreeIPA installation in /etc/ipa but a local configuration in IPA_CONFDIR env var.

Steps to Reproduce

  • Create ~/.ipa/default.conf
  • $ IPA_CONFDIR=~/.ipa python3 -m ipaclient
>>> from ipalib import api
>>> from ipalib import util
>>> import os
>>> api.bootstrap(confdir=os.path.expanduser("~/.ipa"))
>>> util.check_client_configuration(api.env)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/heimes/redhat/freeipa/ipalib/util.py", line 1160, in check_client_configuration
ipapython.admintool.ScriptError: IPA client is not configured on this system
>>> os.path.isfile(api.env.conf_default)

Actual behavior

Test fails with IPA client is not configured on this system

Expected behavior

check_client_configuration should not fail


FreeIPA 4.8.3

Additional info:

Any additional information, configuration, data or log snippets that is needed for reproduction or investigation of the issue.

Log file locations: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Linux_Domain_Identity_Authentication_and_Policy_Guide/config-files-logs.html
Troubleshooting guide: https://www.freeipa.org/page/Troubleshooting

Metadata Update from @cheimes:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3969

2 years ago


  • cf9f9bb Fix logic of check_client_configuration


  • 5d847cf Fix logic of check_client_configuration

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.