42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From c55f4f37589130a0d8952489da175bbcf53f6748 Mon Sep 17 00:00:00 2001
|
|
From: Stefan Metzmacher <metze@samba.org>
|
|
Date: Thu, 10 Sep 2020 17:13:14 +0200
|
|
Subject: [PATCH] wb_sids2xids: build state->idmap_doms based on
|
|
wb_parent_idmap_config
|
|
|
|
In future we'll try to avoid wb_lookupsids_send() and only call
|
|
it if needed.
|
|
|
|
The domain name passed should be only relevant to find the correct
|
|
idmap backend, and these should all be available in
|
|
wb_parent_idmap_config as it was created before the idmap child was forked.
|
|
|
|
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14539
|
|
|
|
Signed-off-by: Stefan Metzmacher <metze@samba.org>
|
|
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
|
|
|
|
Signed-off-by: wangxiaomeng <wangxiaomeng@kylinos.cn>
|
|
Subject: [PATCH] fix winbind coredump
|
|
|
|
---
|
|
source3/winbindd/wb_sids2xids.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/source3/winbindd/wb_sids2xids.c b/source3/winbindd/wb_sids2xids.c
|
|
index 29fb1cd..40c0235 100644
|
|
--- a/source3/winbindd/wb_sids2xids.c
|
|
+++ b/source3/winbindd/wb_sids2xids.c
|
|
@@ -157,7 +157,7 @@ static void wb_sids2xids_idmap_setup_done(struct tevent_req *subreq)
|
|
* with non cached entries
|
|
*/
|
|
for (i=0; i<state->num_sids; i++) {
|
|
- struct wbint_TransID *t = &state->ids.ids[i];
|
|
+ struct wbint_TransID *t = &state->all_ids.ids[i];
|
|
struct dom_sid domain_sid;
|
|
const char *domain_name = NULL;
|
|
int domain_index;
|
|
--
|
|
2.33.0
|
|
|