summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-08 19:01:11 -0700
committerVolker Lendecke <vl@samba.org>2010-09-09 06:19:24 +0200
commitc7d6e6f57174a684c5b84b31993b1d92311d4b80 (patch)
tree98ee910295cf042e2878faf9fa90ea7e3f1d76e1
parent6f1916524bb1f7d38130ba273e3bebe0c93f3a74 (diff)
downloadsamba-c7d6e6f57174a684c5b84b31993b1d92311d4b80.tar.gz
samba-c7d6e6f57174a684c5b84b31993b1d92311d4b80.tar.bz2
samba-c7d6e6f57174a684c5b84b31993b1d92311d4b80.zip
s3: Remove a nested if-statement
-rw-r--r--source3/winbindd/winbindd_pam.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index eda812ef3c..48df304f87 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -1612,18 +1612,16 @@ process_result:
goto done;
}
- if ((state->request->flags & WBFLAG_PAM_CACHED_LOGIN)) {
+ if ((state->request->flags & WBFLAG_PAM_CACHED_LOGIN)
+ && lp_winbind_offline_logon()) {
- if (lp_winbind_offline_logon()) {
- result = winbindd_store_creds(domain,
+ result = winbindd_store_creds(domain,
state->mem_ctx,
state->request->data.auth.user,
state->request->data.auth.pass,
info3);
- }
}
-
if (state->request->flags & WBFLAG_PAM_GET_PWD_POLICY) {
struct winbindd_domain *our_domain = find_our_domain();