[PATCH] passdb.tdb is located in the private directory
Volker Lendecke
vl at samba.org
Mon Dec 24 13:12:54 GMT 2007
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
---
source/passdb/pdb_tdb.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/source/passdb/pdb_tdb.c b/source/passdb/pdb_tdb.c
index b4282b1..d6cab47 100644
--- a/source/passdb/pdb_tdb.c
+++ b/source/passdb/pdb_tdb.c
@@ -1625,7 +1625,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;
--
1.5.3.7
More information about the samba-technical
mailing list