From: Andrew Bartlett Date: Thu, 23 Dec 2004 02:16:57 +0000 (+0000) Subject: r4337: Produce a slightly different error message is lanman authentication is X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5459 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c70583a19c9f741a41d08c0b994fccb66eeb0bf;p=thirdparty%2Fsamba.git r4337: Produce a slightly different error message is lanman authentication is disabled, rather than simply unavailable. Andrew Bartlett --- diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index cc27d3baca0..540acfc2250 100644 --- a/source/smbd/chgpasswd.c +++ b/source/smbd/chgpasswd.c @@ -817,9 +817,14 @@ static NTSTATUS check_oem_password(const char *user, pdb_free_sam(&sampass); return NT_STATUS_WRONG_PASSWORD; } else if (lm_pass_set) { - DEBUG(1, ("LM password change supplied for user %s, but we have no LanMan password to check it with\n", - user)); - pdb_free_sam(&sampass); + if (lp_lanman_auth()) { + DEBUG(1, ("LM password change supplied for user %s, but we have no LanMan password to check it with\n", + user)); + } else { + DEBUG(1, ("LM password change supplied for user %s, but we have disabled LanMan authentication\n", + user)); + } + pdb_free_sam(&sampass); return NT_STATUS_WRONG_PASSWORD; } else { DEBUG(1, ("password change requested for user %s, but no password supplied!\n",