From: Volker Lendecke Date: Tue, 4 Nov 2008 09:51:08 +0000 (+0100) Subject: Ignore 3.0 style invalid group mappings during upgrade to ldb X-Git-Tag: samba-4.0.0alpha6~503 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37f4c70920fb23e28a934be3e8b6b9ea1baaa13f;p=thirdparty%2Fsamba.git Ignore 3.0 style invalid group mappings during upgrade to ldb --- diff --git a/source3/groupdb/mapping_ldb.c b/source3/groupdb/mapping_ldb.c index 1a6b99fa189..db3215552f2 100644 --- a/source3/groupdb/mapping_ldb.c +++ b/source3/groupdb/mapping_ldb.c @@ -574,6 +574,13 @@ static int upgrade_map_record(TDB_CONTEXT *tdb_ctx, TDB_DATA key, return -1; } + if ((int)map.gid == -1) { + /* + * Ignore old invalid mappings + */ + return 0; + } + if (!add_mapping_entry(&map, 0)) { DEBUG(0,("Failed to add mapping entry during upgrade\n")); *(int *)state = -1;