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

Fix AD cache fill with alternate character sets

    XMLWordPrintable

    Details

      Description

      PR: https://github.com/truenas/middleware/pull/6693

      User reported AD cache fill failing on Shift-JIS encoded AD usernames
      with a unicode decode error. Switch from using "net cache list" to
      using py-tdb to iterate keys in a copy of samba's gencache.tdb file
      comparing bytes of beginning of key to IDMAP/UID2SID and IDMAP/GID2SID.
      This side-steps the name-to-sid entries that were choking us on decoding
      output of subprocess.

      We use gencache.tdb IDMAP/

      {X}

      ID2SID keys to determine before building
      our user/group cache so that users in large AD environments can opt to have
      us rely on entries already cached in winbindd. This reduces network traffic and
      load on the AD DC.

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                awalker Andrew Walker
                Reporter:
                bugclerk Bug Clerk
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: