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

dsidm Error: float() argument must be a string or a number, not 'NoneType'

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-10.1
    • None
    • 389-ds-base
    • 389-ds-base-3.1.3-2.el10
    • No
    • Low
    • ZStream
    • rhel-idm-ds
    • None

      Description of problem:

      1. dsidm -D "cn=Directory Manager" ldap://server -b "dc=example,dc=com" account entry-status "uid=user,ou=people,dc=example,dc=com"
        Error: float() argument must be a string or a number, not 'NoneType'

      The problem occurs when the Account Policy Plug-In is enabled but no account policies exist or assigned to a user which causes get_attr_val_utf8_l() to return None for limit in status() of idm/account.py

      The fix would be a simple one-liner to just skip the check in this case eg

      1. Locked indirectly through Account Policy plugin
        if process_account_policy and last_login_time and limit is not None:

      or something like that.

              idm-ds-dev-bugs IdM DS Dev
              rhn-support-abobrov Anton Bobrov (Inactive)
              Mark Reynolds
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: