summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 95f03ab204..614e5a84fc 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -760,7 +760,7 @@ BOOL authorise_login(int snum,char *user,char *password, int pwlen,
}
/* check for a previously validated username/password pair */
- if (!ok && (!lp_revalidate(snum) || lp_security() > SEC_SHARE) &&
+ if (!ok && (lp_security() > SEC_SHARE) &&
(vuser != 0) && !vuser->guest &&
user_ok(vuser->user.unix_name,snum)) {
fstrcpy(user,vuser->user.unix_name);