summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-08-20 22:01:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-08-20 22:01:44 +0000
commit68525e9021832a74608f2dc3e0247317e713e384 (patch)
tree78e3eeff08b873dca0a6e85d86ea80eab8861709 /source3/smbd
parentf9ce2028104fcb1694bc3e8f8d4b7ac3ec8c972e (diff)
downloadsamba-68525e9021832a74608f2dc3e0247317e713e384.tar.gz
samba-68525e9021832a74608f2dc3e0247317e713e384.tar.bz2
samba-68525e9021832a74608f2dc3e0247317e713e384.zip
Add comment to clarify why we call this twice.
(This used to be commit afece03d023b2905c27e147516b61487a7503028)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/auth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/auth.c b/source3/smbd/auth.c
index cb0d54bf9b..d33bc225e6 100644
--- a/source3/smbd/auth.c
+++ b/source3/smbd/auth.c
@@ -230,6 +230,8 @@ BOOL password_ok(char *user, char *password, int pwlen)
return False;
}
+ /* The password could be either NTLM or plain LM. Try NTLM first, but fall-through as
+ required. */
if (pass_check_smb(user, lp_workgroup(), NULL, 0, password, pwlen) == NT_STATUS_NOPROBLEMO) {
return True;
}