mirror of
https://github.com/samba-team/samba.git
synced 2025-11-23 20:23:50 +03:00
r24127: Set the Domain SID into the libnet context, and have libnet_UserInfo
return full SIDs for the user SID and primary group sid. This should help kai with his getpwnam work in winbind. Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
9a8315019e
commit
078671d501
@@ -773,6 +773,9 @@ NTSTATUS libnet_UserInfo_recv(struct composite_context *c, TALLOC_CTX *mem_ctx,
|
||||
s = talloc_get_type(c->private_data, struct user_info_state);
|
||||
info = &s->userinfo.out.info.info21;
|
||||
|
||||
r->out.user_sid = dom_sid_add_rid(mem_ctx, s->ctx->samr.sid, info->rid);
|
||||
r->out.primary_group_sid = dom_sid_add_rid(mem_ctx, s->ctx->samr.sid, info->primary_gid);
|
||||
|
||||
/* string fields */
|
||||
r->out.account_name = talloc_steal(mem_ctx, info->account_name.string);
|
||||
r->out.full_name = talloc_steal(mem_ctx, info->full_name.string);
|
||||
|
||||
Reference in New Issue
Block a user