idmap_hash: provide ID_TYPE_BOTH mappings
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Mar 2019 15:38:35 +0000 (16:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 15 Oct 2019 07:36:38 +0000 (09:36 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/idmap_hash/idmap_hash.c

index 23cf917c03025d568af7c5fed84ccd78a6fc37d9..120d22097f4e017d58af9acc29eb13be1c1eb5c2 100644 (file)
@@ -203,6 +203,7 @@ static NTSTATUS idmap_hash_id_to_sid(struct sid_hash_table *hashed_domains,
        }
 
        sid_compose(id->sid, hashed_domains[h_domain].sid, h_rid);
+       id->xid.type = ID_TYPE_BOTH;
        id->status = ID_MAPPED;
 
        return NT_STATUS_OK;
@@ -341,6 +342,7 @@ static NTSTATUS idmap_hash_sid_to_id(struct sid_hash_table *hashed_domains,
 
 return_mapping:
        id->xid.id = combine_hashes(h_domain, h_rid);
+       id->xid.type = ID_TYPE_BOTH;
        id->status = ID_MAPPED;
 
        return NT_STATUS_OK;