diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-10-31 12:07:59 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-10-31 12:07:59 +0000 |
commit | c8b2718adfe114b74a155116c5e74f014d6df887 (patch) | |
tree | e0cb260ace653e85d4afad37009e54280c9fdb0b | |
parent | e0b56a31480906b39f37761eed20d3cad0d53973 (diff) | |
download | samba-c8b2718adfe114b74a155116c5e74f014d6df887.tar.gz samba-c8b2718adfe114b74a155116c5e74f014d6df887.tar.xz samba-c8b2718adfe114b74a155116c5e74f014d6df887.zip |
Fix up domain logons. Tested with NT4.
-rw-r--r-- | source/auth/auth_util.c | 2 | ||||
-rw-r--r-- | source/rpc_server/srv_netlog_nt.c | 9 | ||||
-rw-r--r-- | source/smbd/auth_util.c | 2 |
3 files changed, 6 insertions, 7 deletions
diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c index 297c482af52..85f01605ab3 100644 --- a/source/auth/auth_util.c +++ b/source/auth/auth_util.c @@ -368,8 +368,8 @@ BOOL make_user_info_netlogon_interactive(auth_usersupplied_info **user_info, ret = make_user_info_map(user_info, smb_name, client_domain, wksta_name, sec_blob, - local_nt_blob, local_lm_blob, + local_nt_blob, plaintext_blob, ntlmssp_flags, True); diff --git a/source/rpc_server/srv_netlog_nt.c b/source/rpc_server/srv_netlog_nt.c index 26054117fb7..042279c568f 100644 --- a/source/rpc_server/srv_netlog_nt.c +++ b/source/rpc_server/srv_netlog_nt.c @@ -495,13 +495,12 @@ NTSTATUS _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON * NET_USER_INFO_3 *usr_info = NULL; NET_ID_INFO_CTR *ctr = q_u->sam_id.ctr; DOM_CRED srv_cred; - SAM_ACCOUNT *sampass = NULL; UNISTR2 *uni_samlogon_user = NULL; UNISTR2 *uni_samlogon_domain = NULL; UNISTR2 *uni_samlogon_workstation = NULL; fstring nt_username, nt_domain, nt_workstation; - auth_usersupplied_info *user_info; - auth_serversupplied_info *server_info; + auth_usersupplied_info *user_info = NULL; + auth_serversupplied_info *server_info = NULL; usr_info = (NET_USER_INFO_3 *)talloc(p->mem_ctx, sizeof(NET_USER_INFO_3)); if (!usr_info) @@ -585,7 +584,7 @@ NTSTATUS _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON * nt_username, nt_domain, nt_workstation, ctr->auth.id1.lm_owf.data, 16, - ctr->auth.id1.lm_owf.data, 16, + ctr->auth.id1.nt_owf.data, 16, p->dc.sess_key); break; } @@ -649,7 +648,7 @@ NTSTATUS _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON * sam_logon_in_ssb = False; - init_net_user_info3(p->mem_ctx, usr_info, sampass, + init_net_user_info3(p->mem_ctx, usr_info, server_info->sam_account, 0, /* logon_count */ 0, /* bad_pw_count */ num_gids, /* uint32 num_groups */ diff --git a/source/smbd/auth_util.c b/source/smbd/auth_util.c index 297c482af52..85f01605ab3 100644 --- a/source/smbd/auth_util.c +++ b/source/smbd/auth_util.c @@ -368,8 +368,8 @@ BOOL make_user_info_netlogon_interactive(auth_usersupplied_info **user_info, ret = make_user_info_map(user_info, smb_name, client_domain, wksta_name, sec_blob, - local_nt_blob, local_lm_blob, + local_nt_blob, plaintext_blob, ntlmssp_flags, True); |