summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorBo Yang <boyang@novell.com>2008-04-07 09:51:42 -0400
committerJim McDonough <jmcd@samba.org>2008-04-07 09:51:42 -0400
commit66dad54c723d971aeb9c2dc11f2e3fa9734597fb (patch)
tree164ecda034f9f2b8007c183ee4dd537e35773017 /source3/winbindd
parent206e7eeb6fb5491155ac4b54e13b7b81ae6c29a0 (diff)
downloadsamba-66dad54c723d971aeb9c2dc11f2e3fa9734597fb.tar.gz
samba-66dad54c723d971aeb9c2dc11f2e3fa9734597fb.tar.bz2
samba-66dad54c723d971aeb9c2dc11f2e3fa9734597fb.zip
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)
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cache.c4
1 files changed, 3 insertions, 1 deletions
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;
}