From: Volker Lendecke Date: Tue, 18 Dec 2018 14:53:21 +0000 (+0100) Subject: idmap_tdb: If one SID fails to map, try the rest X-Git-Tag: tdb-1.3.17~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f2ccb59734440e5844d6ef703a41e032f7d1663;p=thirdparty%2Fsamba.git idmap_tdb: If one SID fails to map, try the rest Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- 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; }