Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-108120

API v2 regression broke user creation

    XMLWordPrintable

    Details

      Description

      Hi, using the same exact code which worked fine in FN 11 after upgrading to TrueNAS core user creation fails and returns this:

      ["user_create.shell"]=>
        array(1) {
          [0]=>
          array(2) {
            ["message"]=>
            string(28) "Please select a valid shell."
            ["errno"]=>
            int(22)
          }
        }

      So, okay thats weird because it worked fine previously...

      So when I tried to curl /api/v2.0/user/shell_choices to figure out what it wants since it no longer wants "/sbin/nologin" like it did 20 minutes ago before I upgraded.

      So this:

      [user@nessie nas]# curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic root:pass" "http://10.0.0.18/api/v2.0/user/shell_choices"  
      500 Internal Server Error

       

       

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                caleb Caleb St. John
                Reporter:
                zct Drew W
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: