Uploaded image for project: 'Red Hat Directory Server'
  1. Red Hat Directory Server
  2. DIRSRV-43

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • dirsrv-13.0
    • dirsrv-11.7
    • 389-ds-base
    • None
    • rhel-sst-idm-ds
    • 0
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • 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)
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: