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:
ea08588
)
Ignore 3.0 style invalid group mappings during upgrade to ldb
author
Volker Lendecke
<vl@samba.org>
Tue, 4 Nov 2008 12:33:36 +0000
(
04:33
-0800)
committer
Jeremy Allison
<jra@samba.org>
Tue, 4 Nov 2008 12:33:36 +0000
(
04:33
-0800)
source/groupdb/mapping_ldb.c
patch
|
blob
|
history
diff --git
a/source/groupdb/mapping_ldb.c
b/source/groupdb/mapping_ldb.c
index 7ce879fb6ed9eb40931956a4c42c3acc760287fb..68e5b4cd5e965d1ca85f918779caf821f5209fcf 100644
(file)
--- a/
source/groupdb/mapping_ldb.c
+++ b/
source/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;