git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5444755
)
idmap_hash: provide ID_TYPE_BOTH mappings
author
Stefan Metzmacher
<metze@samba.org>
Thu, 21 Mar 2019 15:38:35 +0000
(16:38 +0100)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_hash/idmap_hash.c
b/source3/winbindd/idmap_hash/idmap_hash.c
index 23cf917c03025d568af7c5fed84ccd78a6fc37d9..120d22097f4e017d58af9acc29eb13be1c1eb5c2 100644
(file)
--- a/
source3/winbindd/idmap_hash/idmap_hash.c
+++ b/
source3/winbindd/idmap_hash/idmap_hash.c
@@
-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;