mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Add a couple of extra debugs for the secrets.tdb stuff
(This used to be commit c76c1f6904510d6ecca3453f91433420f22b7bd6)
This commit is contained in:
parent
3f387d1971
commit
0d09562eed
@ -155,9 +155,15 @@ BOOL secrets_fetch_trust_account_password(char *domain, uint8 ret_pwd[16],
|
||||
return True;
|
||||
}
|
||||
|
||||
if (!(pass = secrets_fetch(trust_keystr(domain), &size)) ||
|
||||
size != sizeof(*pass))
|
||||
if (!(pass = secrets_fetch(trust_keystr(domain), &size))) {
|
||||
DEBUG(5, ("secrets_fetch failed!\n"));
|
||||
return False;
|
||||
}
|
||||
|
||||
if (size != sizeof(*pass)) {
|
||||
DEBUG(0, ("secrets were of incorrect size!\n"));
|
||||
return False;
|
||||
}
|
||||
|
||||
if (pass_last_set_time) *pass_last_set_time = pass->mod_time;
|
||||
memcpy(ret_pwd, pass->hash, 16);
|
||||
|
Loading…
x
Reference in New Issue
Block a user