From 6f2ccb59734440e5844d6ef703a41e032f7d1663 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 18 Dec 2018 15:53:21 +0100 Subject: [PATCH] idmap_tdb: If one SID fails to map, try the rest Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- source3/winbindd/idmap_tdb_common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/idmap_tdb_common.c b/source3/winbindd/idmap_tdb_common.c index e130be08245..34269e3fe56 100644 --- a/source3/winbindd/idmap_tdb_common.c +++ b/source3/winbindd/idmap_tdb_common.c @@ -577,8 +577,11 @@ static NTSTATUS idmap_tdb_common_sids_to_unixids_action(struct db_context *db, ret = idmap_tdb_common_new_mapping(state->dom, state->ids[i]); + DBG_DEBUG("idmap_tdb_common_new_mapping returned %s\n", + nt_errstr(ret)); if (!NT_STATUS_IS_OK(ret)) { - goto done; + ret = STATUS_SOME_UNMAPPED; + continue; } num_mapped += 1; } -- 2.47.3