diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-24 14:12:54 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-29 01:01:47 -0800 |
commit | 40bf6730aaca0409d17619c49e9eea59d68a6f10 (patch) | |
tree | 50aff15109abd0b7291e56bad96c5918d09b8730 /source3 | |
parent | 8093a75d6f44644b70023272f186575c2372c54b (diff) | |
download | samba-40bf6730aaca0409d17619c49e9eea59d68a6f10.tar.gz samba-40bf6730aaca0409d17619c49e9eea59d68a6f10.tar.bz2 samba-40bf6730aaca0409d17619c49e9eea59d68a6f10.zip |
passdb.tdb is located in the private directory
Jerry, as part of d6cdbfd87 the default location of passdb.tdb has changed from
the private directory to the state directory. I think because passdb.tdb holds
the password hashes, it is reasonable to keep this next to the smbpasswd file.
Please review and potentially push.
Thanks,
Volker
(This used to be commit c9c7607c402c0a9df9796c767b689d207d67d8e4)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/pdb_tdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 1277b9c395..5e21c46abf 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -1613,7 +1613,8 @@ static NTSTATUS pdb_init_tdbsam(struct pdb_methods **pdb_method, const char *loc /* save the path for later */ if (!location) { - if (asprintf(&tdbfile, "%s/%s", get_dyn_STATEDIR(), PASSDB_FILE_NAME) < 0) { + if (asprintf(&tdbfile, "%s/%s", get_dyn_PRIVATE_DIR(), + PASSDB_FILE_NAME) < 0) { return NT_STATUS_NO_MEMORY; } pfile = tdbfile; |