1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

r4337: Produce a slightly different error message is lanman authentication is

disabled, rather than simply unavailable.

Andrew Bartlett
(This used to be commit 1c70583a19)
This commit is contained in:
Andrew Bartlett
2004-12-23 02:16:57 +00:00
committed by Gerald (Jerry) Carter
parent 8222f958d1
commit 5d08f59463

View File

@ -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",