summaryrefslogtreecommitdiff
path: root/source4/auth/ntlm
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-05-25 15:23:54 +1000
committerAndrew Tridgell <tridge@samba.org>2009-05-25 15:23:54 +1000
commitb335618d1743599588902cfd2be4ae37150b239d (patch)
treee2981301d61704362023589a47eadc6288f7419f /source4/auth/ntlm
parent4dcc058ea1d98e40f59f2726c4dd37a98401b258 (diff)
downloadsamba-b335618d1743599588902cfd2be4ae37150b239d.tar.gz
samba-b335618d1743599588902cfd2be4ae37150b239d.tar.bz2
samba-b335618d1743599588902cfd2be4ae37150b239d.zip
fixed interpretation of ACB_PWNOTREQ
This bit actually means that we should ignore the minimum password length field for this user. It doesn't mean that the password should be seen as empty
Diffstat (limited to 'source4/auth/ntlm')
-rw-r--r--source4/auth/ntlm/auth_sam.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source4/auth/ntlm/auth_sam.c b/source4/auth/ntlm/auth_sam.c
index 2b9b92812c..e99d0e1f51 100644
--- a/source4/auth/ntlm/auth_sam.c
+++ b/source4/auth/ntlm/auth_sam.c
@@ -152,20 +152,6 @@ static NTSTATUS authsam_password_ok(struct auth_context *auth_context,
{
NTSTATUS status;
- if (acct_flags & ACB_PWNOTREQ) {
- if (lp_null_passwords(auth_context->lp_ctx)) {
- DEBUG(3,("Account for user '%s' has no password and null passwords are allowed.\n",
- user_info->mapped.account_name));
- *lm_sess_key = data_blob(NULL, 0);
- *user_sess_key = data_blob(NULL, 0);
- return NT_STATUS_OK;
- } else {
- DEBUG(3,("Account for user '%s' has no password and null passwords are NOT allowed.\n",
- user_info->mapped.account_name));
- return NT_STATUS_LOGON_FAILURE;
- }
- }
-
switch (user_info->password_state) {
case AUTH_PASSWORD_PLAIN:
{