t = centry_time(centry);
*cached_nt_pass = (const uint8 *)centry_string(centry, mem_ctx);
- dump_data(10, (const char *)cached_nt_pass, NT_HASH_LEN);
+#if DEBUG_PASSWORD
+ dump_data(100, (const char *)cached_nt_pass, NT_HASH_LEN);
+#endif
status = centry->status;
DEBUG(10,("wcache_get_creds: [Cached] - cached creds for user %s status %s\n",
return NT_STATUS_INTERNAL_DB_ERROR;
}
+#if DEBUG_PASSWORD
dump_data(100, (const char *)nt_pass, NT_HASH_LEN);
+#endif
centry_put_time(centry, time(NULL));
centry_put_string(centry, (const char *)nt_pass);
E_md4hash(pass, nt_pass);
+#if DEBUG_PASSWORD
dump_data(100, (const char *)nt_pass, NT_HASH_LEN);
+#endif
status = wcache_save_creds(domain, mem_ctx, &cred_sid, nt_pass);
if (!NT_STATUS_IS_OK(status)) {
E_md4hash(state->request.data.auth.pass, new_nt_pass);
+#if DEBUG_PASSWORD
dump_data(100, (const char *)new_nt_pass, NT_HASH_LEN);
dump_data(100, (const char *)cached_nt_pass, NT_HASH_LEN);
+#endif
if (!memcmp(cached_nt_pass, new_nt_pass, NT_HASH_LEN)) {