diff options
author | Jeremy Allison <jra@samba.org> | 2006-01-27 00:09:03 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2006-01-27 00:09:03 +0000 |
commit | 98749b24628e7edacaaff77ee0c03a98fd7c5def (patch) | |
tree | bfed95fc9a3a14e617ed563dd36202fa1922ca90 | |
parent | 7bd90c026009cb4976081e58e2efbf2881e8c4d2 (diff) | |
download | samba-98749b24628e7edacaaff77ee0c03a98fd7c5def.tar.gz samba-98749b24628e7edacaaff77ee0c03a98fd7c5def.tar.xz samba-98749b24628e7edacaaff77ee0c03a98fd7c5def.zip |
r13175: Actually make adding a new user into an empty pdbtdb
file create the file.
Jeremy.
-rw-r--r-- | source/passdb/pdb_tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/passdb/pdb_tdb.c b/source/passdb/pdb_tdb.c index d58187ffe5b..164ec722998 100644 --- a/source/passdb/pdb_tdb.c +++ b/source/passdb/pdb_tdb.c @@ -420,7 +420,7 @@ static NTSTATUS tdbsam_getsampwnam (struct pdb_methods *my_methods, SAM_ACCOUNT * TDB file doesn't exist, so try to create new one. This is useful to avoid * confusing error msg when adding user account first time */ - if ((pwd_tdb = tdbsam_tdbopen(tdb_state->tdbsam_location, O_CREAT )) != NULL) { + if ((pwd_tdb = tdbsam_tdbopen(tdb_state->tdbsam_location, O_CREAT|O_RDWR )) != NULL) { DEBUG(0, ("pdb_getsampwnam: TDB passwd (%s) did not exist. File successfully created.\n", tdb_state->tdbsam_location)); } else { |