#8743 Inconsistent nsaccountlock field type in api response
Closed: fixed 2 years ago by antorres. Opened 3 years ago by pcech.

Description of problem

Inconsistent response in API. For method user_add ipa returns a response with 'nsaccountlock' field presented as an array with one element: "TRUE" or "FALSE" eg. ["TRUE"], but in user_find method ipa returns 'nsaccountlock' field with just boolean value.

Reproducible using IPA tools with:

$ ipa -vvv  user-add --first=tim --last=user tuser --setattr nsaccountlock=true

        "result": {
            ...
            "mepmanagedentry": [
                "cn=tuser,cn=groups,cn=accounts,dc=example,dc=test"
            ],
            "nsaccountlock": [
                "TRUE"
            ],
            ...
            "uidnumber": [
                "1477600001"
            ]
        },

Metadata Update from @rcritten:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1922781

3 years ago

Metadata Update from @antorres:
- Issue assigned to antorres

3 years ago

master:

  • 45de2d7 Return nsaccountlock in user-add as boolean
  • 8caac84 ipatests: expect boolean type for nsaccountlock in user module

Metadata Update from @antorres:
- Custom field affects_doc adjusted to on
- Custom field knownissue adjusted to on
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

ipa-4-9:

  • 39153f9 Return nsaccountlock in user-add as boolean
  • cfff1f6 ipatests: expect boolean type for nsaccountlock in user module

Login to comment on this ticket.

Metadata