40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
Index: samba-3.6.25/libcli/auth/ntlm_check.c
|
|
===================================================================
|
|
--- samba-3.6.25.orig/libcli/auth/ntlm_check.c 2015-02-22 22:11:32.000000000 +0800
|
|
+++ samba-3.6.25/libcli/auth/ntlm_check.c 2021-01-07 10:30:56.857873882 +0800
|
|
@@ -224,7 +224,7 @@
|
|
const struct samr_Password *stored_nt)
|
|
{
|
|
if (stored_nt == NULL) {
|
|
- DEBUG(3,("ntlm_password_check: NO NT password stored for user %s.\n",
|
|
+ DEBUG(3,("hash_password_check: NO NT password stored for user %s.\n",
|
|
username));
|
|
}
|
|
|
|
@@ -232,14 +232,14 @@
|
|
if (memcmp(client_nt->hash, stored_nt->hash, sizeof(stored_nt->hash)) == 0) {
|
|
return NT_STATUS_OK;
|
|
} else {
|
|
- DEBUG(3,("ntlm_password_check: Interactive logon: NT password check failed for user %s\n",
|
|
+ DEBUG(3,("hash_password_check: Interactive logon: NT password check failed for user %s\n",
|
|
username));
|
|
return NT_STATUS_WRONG_PASSWORD;
|
|
}
|
|
|
|
} else if (client_lanman && stored_lanman) {
|
|
if (!lanman_auth) {
|
|
- DEBUG(3,("ntlm_password_check: Interactive logon: only LANMAN password supplied for user %s, and LM passwords are disabled!\n",
|
|
+ DEBUG(3,("hash_password_check: Interactive logon: only LANMAN password supplied for user %s, and LM passwords are disabled!\n",
|
|
username));
|
|
return NT_STATUS_WRONG_PASSWORD;
|
|
}
|
|
@@ -250,7 +250,7 @@
|
|
if (memcmp(client_lanman->hash, stored_lanman->hash, sizeof(stored_lanman->hash)) == 0) {
|
|
return NT_STATUS_OK;
|
|
} else {
|
|
- DEBUG(3,("ntlm_password_check: Interactive logon: LANMAN password check failed for user %s\n",
|
|
+ DEBUG(3,("hash_password_check: Interactive logon: LANMAN password check failed for user %s\n",
|
|
username));
|
|
return NT_STATUS_WRONG_PASSWORD;
|
|
}
|