diff options
author | Luke Leighton <lkcl@samba.org> | 1999-03-10 17:06:07 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-03-10 17:06:07 +0000 |
commit | 2aadefe8ccb84414988e8c195619c97216c19ae2 (patch) | |
tree | 398b7c5e10c6da7da02c5974ddd3daaf5ac210b4 | |
parent | a18c6ba9a411b8b87cc67e02f5287786d1aaad20 (diff) | |
download | samba-2aadefe8ccb84414988e8c195619c97216c19ae2.tar.gz samba-2aadefe8ccb84414988e8c195619c97216c19ae2.tar.bz2 samba-2aadefe8ccb84414988e8c195619c97216c19ae2.zip |
Greg Dickie: spotted bug where smb_nt_passwd could be NULL.
(This used to be commit d8946f1cc7b77b06f346344ffdb4772e6d225396)
-rw-r--r-- | source3/rpc_server/srv_netlog.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c index 30c132aa06..1bb86e183f 100644 --- a/source3/rpc_server/srv_netlog.c +++ b/source3/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; } |