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

Failed to set NT password for scan: Username not found! issue with special characters

    XMLWordPrintable

    Details

    • Impact:
      Medium

      Description

      Whan creating a new user with symbols in the password we get the below error:

      have performed this test 3+ times and can verify the behavour is consistent.

       

      Error: Traceback (most recent call last):
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
          result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 463, in update
          rv = await self.middleware._call(
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
          return await f(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/account.py", line 497, in do_update
          await self.__set_smbpasswd(user['username'])
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/account.py", line 800, in __set_smbpasswd
          await self.middleware.call('smb.update_passdb_user', username)
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1233, in call
          return await self._call(
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/smb_/passdb.py", line 111, in update_passdb_user
          raise CallError(f'Failed to set NT password for {username}: {setntpass.stderr.decode()}')
      middlewared.service_exception.CallError: [EFAULT] Failed to set NT password for scan: Username not found!

      Performing the same task only using alpha numeric characters works as expected.

      Potentially a regex issue here but ill let the experts work this out.

      let me know if any other information is required.

       

      ""Cheers

      G

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                releng Release Council
                Reporter:
                gerardo@velocityhost.com.au Gerardo Altman
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: