From 18909a1dc77f77ab44208b9c8426ac31673194dc Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 23 Mar 2006 12:50:25 +0000 Subject: r14674: Further cleanup for cached logins, only dump hashes with DEBUG_PASSWORD. Guenther (This used to be commit 24afdda2ae7626b8c0b378d158ede391924d1274) --- source3/nsswitch/winbindd_cache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/nsswitch/winbindd_cache.c') diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index a9381504f2..12592178d9 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -841,7 +841,9 @@ NTSTATUS wcache_get_creds(struct winbindd_domain *domain, 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", @@ -865,7 +867,9 @@ NTSTATUS wcache_save_creds(struct winbindd_domain *domain, 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); -- cgit