1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-09 00:23:50 +03:00

r8432: Fix #2077 - login to trusted domain doesn't allow home drive map and login

scripts to be executed.

We were filling in our name as the server which processed the login, even
when it was done by a trusted DC.

Thanks to John Janosik <jpjanosi@us.ibm.com> for the fix.
This commit is contained in:
Jim McDonough
2005-07-13 20:04:26 +00:00
committed by Gerald (Jerry) Carter
parent cd2c467cc4
commit 0446319a3b
3 changed files with 12 additions and 2 deletions

View File

@@ -1327,6 +1327,9 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
return nt_status;
}
(*server_info)->login_server = unistr2_tdup(mem_ctx,
&(info3->uni_logon_srv));
(*server_info)->ptok = token;
SAFE_FREE(lgroupSIDs);

View File

@@ -70,6 +70,8 @@ typedef struct auth_serversupplied_info
DATA_BLOB user_session_key;
DATA_BLOB lm_session_key;
char *login_server; /* which server authorized the login? */
uint32 sam_fill_level; /* How far is this structure filled? */
SAM_ACCOUNT *sam_account;

View File

@@ -764,7 +764,12 @@ NTSTATUS _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON *
return NT_STATUS_UNSUCCESSFUL;
}
if(server_info->login_server) {
pstrcpy(my_name, server_info->login_server);
} else {
pstrcpy(my_name, global_myname());
}
if (!NT_STATUS_IS_OK(status
= nt_token_to_group_list(p->mem_ctx,