Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-110362

TypeError "cannot convert 'int' object to bytes" when enabling SSSD Compatibility in AD Idmap

    XMLWordPrintable

    Details

    • Impact:
      Medium

      Description

      This is a brand new installation of TrueNAS Core (TrueNAS-12.0-U3). After joining the NAS to my Active Directory domain, I went into the Idmap Edit section and checked off "SSSD Compat," leaving the backend set to RID. Upon attempting to save, I got a TypeError: "cannot convert 'int' object to bytes." It included the following log:

      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 1195, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 476, in update
          rv = await self.middleware._call(
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, 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/idmap.py", line 675, in do_update
          new['range_low'] = await self.get_sssd_low_range(new['name'])
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/idmap.py", line 298, in get_sssd_low_range
          k = k | int.from_bytes(data_bytes[2], byteorder='little') << 16
      TypeError: cannot convert 'int' object to bytes

      Is this a bug or is there a setting somewhere else that I need to set for this to work? I'm trying to get an Ubuntu machine (joined to my domain with SSSD) to match UIDs and GIDs with the NAS for AD domain accounts.

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                awalker Andrew Walker
                Reporter:
                Roadsguy Albert Pundt
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: