Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-97053

ipa-idrange-fix: 'Env' object has no attribute 'basedn'

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • ipa-4.12.2-22.el10
    • No
    • Low
    • 1
    • rhel-idm-ipa
    • 19
    • 3
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Iteration 2
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Run ipa-idrange-fix command on a system where IPA is not installed.

      [root@sumenon-1mt-rhel-10 ~]# ipa-idrange-fix 
      'Env' object has no attribute 'basedn'
      The ipa-idrange-fix command failed. See /var/log/ipa-idrange-fix.log for more information

      2025-06-16T12:39:05Z DEBUG   File "/usr/lib/python3.12/site-packages/ipapython/admintool.py", line 219, in execute
          return_value = self.run()
                         ^^^^^^^^^^
        File "/usr/lib/python3.12/site-packages/ipaserver/install/ipa_idrange_fix.py", line 173, in run
          api.finalize()
        File "/usr/lib/python3.12/site-packages/ipalib/plugable.py", line 753, in finalize
          self.__do_if_not_done('load_plugins')
        File "/usr/lib/python3.12/site-packages/ipalib/plugable.py", line 432, in __do_if_not_done
          getattr(self, name)()
        File "/usr/lib/python3.12/site-packages/ipalib/plugable.py", line 633, in load_plugins
          self.add_package(package)
        File "/usr/lib/python3.12/site-packages/ipalib/plugable.py", line 660, in add_package
          module = importlib.import_module(name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/importlib/_init_.py", line 90, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 999, in exec_module
        File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
        File "/usr/lib/python3.12/site-packages/ipaserver/plugins/aci.py", line 146, in <module>
          'user': 'ldap:///' + str(DN(('uid', '*'), api.env.container_user, api.env.basedn)),
                                                                            ^^^^^^^^^^^^^^

      2025-06-16T12:39:05Z DEBUG The ipa-idrange-fix command failed, exception: AttributeError: 'Env' object has no attribute 'basedn'
      2025-06-16T12:39:05Z ERROR 'Env' object has no attribute 'basedn'

      The command should behave similar to other ipa commands e.g

      [root@sumenon-1mt-rhel-10 ~]# ipa-migrate 
      IPA is not configured

              frenaud@redhat.com Florence Renaud
              sumenon@redhat.com Sudhir Menon
              Florence Renaud Florence Renaud
              Sudhir Menon Sudhir Menon
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: