mirror of
https://github.com/samba-team/samba.git
synced 2025-12-14 20:23:54 +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:
committed by
Gerald (Jerry) Carter
parent
cd2c467cc4
commit
0446319a3b
@@ -764,8 +764,13 @@ NTSTATUS _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON *
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
pstrcpy(my_name, global_myname());
|
||||
|
||||
|
||||
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,
|
||||
&domain_sid,
|
||||
|
||||
Reference in New Issue
Block a user