summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-03-27 12:12:30 -0700
committerJeremy Allison <jra@samba.org>2009-03-27 12:13:13 -0700
commitd942d248d6207312226d597a59c4772aaae614b1 (patch)
treeaa508fc245a9857bcc1869c22adfbb8aca4bbec6 /source3/passdb
parent66b97d36b9a086f2ef76f2d42a07bfdbdaa0f00d (diff)
downloadsamba-d942d248d6207312226d597a59c4772aaae614b1.tar.gz
samba-d942d248d6207312226d597a59c4772aaae614b1.tar.bz2
samba-d942d248d6207312226d597a59c4772aaae614b1.zip
Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly. For the clustering case.
Clustered setups should have only ever used the unsigned version of TDB_DATA in the first place so they can't be in this mess :-). Just do the normal upgrade in the clustered case. Jeremy.
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_tdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 73fcfee4b3..fb40b27476 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -322,7 +322,8 @@ static bool tdbsam_convert(struct db_context **pp_db, const char *name, int32 fr
struct db_context *db = NULL;
int ret;
- if (!tdbsam_convert_backup(name, pp_db)) {
+ /* We only need the update backup for local db's. */
+ if (db_is_local(name) && !tdbsam_convert_backup(name, pp_db)) {
DEBUG(0, ("tdbsam_convert: Could not backup %s\n", name));
return false;
}