Fix keyerror on adding foreign mappings

Description

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

Minor difference in return for `idmap.domain_info` in 12 and
SCALE. 12 key is `SID` and SCALE it is `sid`.

Also fix case where we weren't generating a default group mapping
for BUILTIN\Users, and we weren't removing stale mappings.

Problem/Justification

None

Impact

None

Activity

Show:
Complete

Details

Assignee

Reporter

Components

Fix versions

Priority

More fields

Katalon Platform

Created September 13, 2021 at 7:10 PM
Updated July 6, 2022 at 8:59 PM
Resolved September 13, 2021 at 7:29 PM