summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-11-28 05:24:59 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:46:38 +0100
commita17c0a5a1a30d99d9d7e8fdd5720e59efce0cbe6 (patch)
tree5cd788466b57755b7444ee013b2979d53229f629
parent37fdef233e3761d511c624ab79c8ef1587090fba (diff)
downloadsamba-a17c0a5a1a30d99d9d7e8fdd5720e59efce0cbe6.tar.gz
samba-a17c0a5a1a30d99d9d7e8fdd5720e59efce0cbe6.tar.bz2
samba-a17c0a5a1a30d99d9d7e8fdd5720e59efce0cbe6.zip
r26183: The idea of a self-seeding secrets.ldb is nice, but in practice we do
this with the provision, which sets up a very different database. Removing this ensures we are consistant. Andrew Bartlett (This used to be commit 6d4d20ebaf5ae5c9e2629cd58c0dc5d699aad450)
-rw-r--r--source4/param/secrets.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source4/param/secrets.c b/source4/param/secrets.c
index 3aef92f25d..c749d38bb2 100644
--- a/source4/param/secrets.c
+++ b/source4/param/secrets.c
@@ -105,11 +105,6 @@ struct ldb_context *secrets_db_connect(TALLOC_CTX *mem_ctx)
char *path;
const char *url;
struct ldb_context *ldb;
- bool existed;
- const char *init_ldif =
- "dn: @ATTRIBUTES\n" \
- "computerName: CASE_INSENSITIVE\n" \
- "flatname: CASE_INSENSITIVE\n";
url = lp_secrets_url(global_loadparm);
if (!url || !url[0]) {
@@ -121,8 +116,6 @@ struct ldb_context *secrets_db_connect(TALLOC_CTX *mem_ctx)
return NULL;
}
- existed = file_exist(path);
-
/* Secrets.ldb *must* always be local. If we call for a
* system_session() we will recurse */
ldb = ldb_wrap_connect(mem_ctx, global_loadparm, path, NULL, NULL, 0, NULL);
@@ -131,10 +124,6 @@ struct ldb_context *secrets_db_connect(TALLOC_CTX *mem_ctx)
return NULL;
}
- if (!existed) {
- gendb_add_ldif(ldb, init_ldif);
- }
-
return ldb;
}