diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-08-02 13:08:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:01:27 -0500 |
commit | e0779e2d3bb29c16fc4215e78cda8764bce15767 (patch) | |
tree | 3fed4eddc9dc2130ba141328113b903e595f7558 /source4/libnet/libnet_user.c | |
parent | fc9471c4df4cbdda8917a6c06640214bfd956602 (diff) | |
download | samba-e0779e2d3bb29c16fc4215e78cda8764bce15767.tar.gz samba-e0779e2d3bb29c16fc4215e78cda8764bce15767.tar.bz2 samba-e0779e2d3bb29c16fc4215e78cda8764bce15767.zip |
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 used to be commit 078671d5015c63e4bcd96815e150dae918763b83)
Diffstat (limited to 'source4/libnet/libnet_user.c')
-rw-r--r-- | source4/libnet/libnet_user.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c index 7cdd171d29..fe303620fe 100644 --- a/source4/libnet/libnet_user.c +++ b/source4/libnet/libnet_user.c @@ -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); |