mirror of
https://github.com/samba-team/samba.git
synced 2025-11-13 08:23:49 +03:00
s3:rpc_server: we need to make a copy of my_name in serverinfo_to_SamInfo_base()
This is important for the case the server_info already contains a logon_server. metze
This commit is contained in:
@@ -1654,7 +1654,7 @@ static NTSTATUS serverinfo_to_SamInfo_base(TALLOC_CTX *mem_ctx,
|
||||
base->groups = groups;
|
||||
base->user_flags = NETLOGON_EXTRA_SIDS;
|
||||
base->key = user_session_key;
|
||||
base->logon_server.string = my_name;
|
||||
base->logon_server.string = talloc_strdup(mem_ctx, my_name);
|
||||
base->domain.string = talloc_strdup(mem_ctx, pdb_get_domain(sampw));
|
||||
base->domain_sid = sid;
|
||||
base->LMSessKey = lm_session_key;
|
||||
|
||||
Reference in New Issue
Block a user