mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
r13209: Make smbpasswd -a work again if passdb did not exist.
Volker (This used to be commit e747ea7250b3ff19aee49072a2cf95840ff50b85)
This commit is contained in:
parent
5fa89783ab
commit
b2e8358b3d
@ -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…
x
Reference in New Issue
Block a user