From 66dad54c723d971aeb9c2dc11f2e3fa9734597fb Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Mon, 7 Apr 2008 09:51:42 -0400 Subject: Only cache password policy results that worked, otherwise we cannot login until the cache expires even if a connection to a DC has been restored. (This used to be commit 8671f9767d7d93a86712741303d6046937c3aae8) --- source3/winbindd/winbindd_cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 0f8bd49d06..e4b0a53d5d 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -2232,7 +2232,9 @@ do_query: /* and save it */ refresh_sequence_number(domain, false); - wcache_save_password_policy(domain, status, policy); + if (NT_STATUS_IS_OK(status)) { + wcache_save_password_policy(domain, status, policy); + } return status; } -- cgit