Bug 2151863
| Summary: | dsidm Error: float() argument must be a string or a number, not 'NoneType' | ||
|---|---|---|---|
| Product: | Red Hat Directory Server | Reporter: | Anton Bobrov <abobrov> |
| Component: | 389-ds-base | Assignee: | LDAP Maintainers <idm-ds-dev-bugs> |
| Status: | CLOSED MIGRATED | QA Contact: | LDAP QA Team <idm-ds-qe-bugs> |
| Severity: | high | Docs Contact: | Evgenia Martynyuk <emartyny> |
| Priority: | high | ||
| Version: | 11.7 | CC: | idm-ds-dev-bugs, mreynolds, musoni, pasik |
| Target Milestone: | DS11.7 | Keywords: | Triaged |
| Target Release: | dirsrv-12.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | sync-to-jira | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-06-26 13:48:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This BZ has been automatically migrated to Red Hat Issue Tracker https://issues.redhat.com/browse/DIRSRV-43. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |
Description of problem: # 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 # Locked indirectly through Account Policy plugin if process_account_policy and last_login_time and limit is not None: or something like that.