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 | 0d09562eed608941b2bee29e37d7ea4ba33582c3 (patch) | |
tree | f78d78f76db5fdf62370a3a527827e0e0800f134 | |
parent | 3f387d19717c31a2eec265ec790293ece3381094 (diff) | |
download | samba-0d09562eed608941b2bee29e37d7ea4ba33582c3.tar.gz samba-0d09562eed608941b2bee29e37d7ea4ba33582c3.tar.bz2 samba-0d09562eed608941b2bee29e37d7ea4ba33582c3.zip |
Add a couple of extra debugs for the secrets.tdb stuff
(This used to be commit c76c1f6904510d6ecca3453f91433420f22b7bd6)
-rw-r--r-- | source3/passdb/secrets.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c index c855c0adc1..198f557bd6 100644 --- a/source3/passdb/secrets.c +++ b/source3/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); |