summaryrefslogtreecommitdiff
path: root/source3/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-12-23 02:16:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:45 -0500
commit5d08f59463cf286d2b0547e6b6c44425ae8a48eb (patch)
tree2216e626a21309e4dc77e046185f8de5af59f99f /source3/smbd/chgpasswd.c
parent8222f958d15256a62712710c9c9a159106746d8b (diff)
downloadsamba-5d08f59463cf286d2b0547e6b6c44425ae8a48eb.tar.gz
samba-5d08f59463cf286d2b0547e6b6c44425ae8a48eb.tar.bz2
samba-5d08f59463cf286d2b0547e6b6c44425ae8a48eb.zip
r4337: Produce a slightly different error message is lanman authentication is
disabled, rather than simply unavailable. Andrew Bartlett (This used to be commit 1c70583a19c9f741a41d08c0b994fccb66eeb0bf)
Diffstat (limited to 'source3/smbd/chgpasswd.c')
-rw-r--r--source3/smbd/chgpasswd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index cc27d3baca..540acfc225 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/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",