summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-03 13:24:10 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-05-03 07:37:07 +0200
commit56a5b7d09e0eed66690d87241ee71bca5048e2f8 (patch)
tree41c68c58ee7ee45d2866fcb72c8c12da21a0d102 /source4/smbd
parent2c32534d5ba5d009c48f377aa5aea8e77b4fa316 (diff)
downloadsamba-56a5b7d09e0eed66690d87241ee71bca5048e2f8.tar.gz
samba-56a5b7d09e0eed66690d87241ee71bca5048e2f8.tar.bz2
samba-56a5b7d09e0eed66690d87241ee71bca5048e2f8.zip
s4-param Rename secrets_init() -> randseed_init()
This only sets up the random number generator callback these days, so use a different database for that. (All secrets data in Samba4 is in secrets.ldb) Andrew Bartlett
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/server.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index 81dd78701e..4cd0263137 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -388,10 +388,9 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
pidfile_create(lpcfg_piddir(cmdline_lp_ctx), binary_name);
- /* Do *not* remove this, until you have removed
- * passdb/secrets.c, and proved that Samba still builds... */
- /* Setup the SECRETS subsystem */
- if (secrets_init(talloc_autofree_context(), cmdline_lp_ctx) == NULL) {
+ /* Set up a database to hold a random seed, in case we don't
+ * have /dev/urandom */
+ if (randseed_init(talloc_autofree_context(), cmdline_lp_ctx) == NULL) {
return 1;
}