diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-12-05 10:52:13 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-12-05 10:52:13 +0000 |
commit | c76c1f6904510d6ecca3453f91433420f22b7bd6 (patch) | |
tree | 0c8a13cc0f65ec2234b587ceef7f0bb6d5e5794f /source/passdb | |
parent | d15ea4fa8e23469f104405c197206e2779461323 (diff) | |
download | samba-c76c1f6904510d6ecca3453f91433420f22b7bd6.tar.gz samba-c76c1f6904510d6ecca3453f91433420f22b7bd6.tar.xz samba-c76c1f6904510d6ecca3453f91433420f22b7bd6.zip |
Add a couple of extra debugs for the secrets.tdb stuff
Diffstat (limited to 'source/passdb')
-rw-r--r-- | source/passdb/secrets.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c index c855c0adc11..198f557bd62 100644 --- a/source/passdb/secrets.c +++ b/source/passdb/secrets.c @@ -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); |