mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r13209: Make smbpasswd -a work again if passdb did not exist.
Volker
This commit is contained in:
parent
246b5b4356
commit
e747ea7250
@ -423,6 +423,7 @@ static NTSTATUS tdbsam_getsampwnam (struct pdb_methods *my_methods, SAM_ACCOUNT
|
||||
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));
|
||||
tdb_close(pwd_tdb);
|
||||
} else {
|
||||
DEBUG(0, ("pdb_getsampwnam: TDB passwd (%s) does not exist. Couldn't create new one. Error was: %s\n",
|
||||
tdb_state->tdbsam_location, strerror(errno)));
|
||||
|
Loading…
Reference in New Issue
Block a user