git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0381bb
)
Greg Dickie: spotted bug where smb_nt_passwd could be NULL.
author
Luke Leighton
<lkcl@samba.org>
Wed, 10 Mar 1999 17:06:07 +0000
(17:06 +0000)
committer
Luke Leighton
<lkcl@samba.org>
Wed, 10 Mar 1999 17:06:07 +0000
(17:06 +0000)
source/rpc_server/srv_netlog.c
patch
|
blob
|
history
diff --git
a/source/rpc_server/srv_netlog.c
b/source/rpc_server/srv_netlog.c
index 30c132aa06070cd07853cadf290aedc936afc226..1bb86e183f71ea1a4355bb30abe9adc67b61ff7d 100644
(file)
--- a/
source/rpc_server/srv_netlog.c
+++ b/
source/rpc_server/srv_netlog.c
@@
-528,8
+528,15
@@
static uint32 net_login_interactive(NET_ID_INFO_1 *id1,
dump_data(100, nt_pwd, 16);
#endif
+ if (smb_pass->smb_nt_passwd == NULL)
+ {
+ DEBUG(5,("warning: NETLOGON user %s only has an LM password\n",
+ smb_pass->unix_name));
+ }
+
if (memcmp(smb_pass->smb_passwd , lm_pwd, 16) != 0 &&
- memcmp(smb_pass->smb_nt_passwd, nt_pwd, 16) != 0)
+ (smb_pass->smb_nt_passwd == NULL ||
+ memcmp(smb_pass->smb_nt_passwd, nt_pwd, 16) != 0))
{
status = 0xC0000000 | NT_STATUS_WRONG_PASSWORD;
}