1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s3-libnet_join: fully implement libnet_odj_compose_OP_JOINPROV3_PART

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
Günther Deschner 2021-02-13 18:21:23 +01:00
parent beaab06289
commit 0d75503421

View File

@ -123,17 +123,27 @@ static WERROR libnet_odj_compose_OP_JOINPROV3_PART(TALLOC_CTX *mem_ctx,
struct OP_JOINPROV3_PART **p)
{
struct OP_JOINPROV3_PART *b;
struct dom_sid *sid;
b = talloc_zero(mem_ctx, struct OP_JOINPROV3_PART);
if (b == NULL) {
return WERR_NOT_ENOUGH_MEMORY;
}
/* TODO */
b->Rid = r->out.account_rid;
sid = dom_sid_add_rid(mem_ctx, r->out.domain_sid, r->out.account_rid);
if (sid == NULL) {
return WERR_NOT_ENOUGH_MEMORY;
}
b->lpSid = dom_sid_string(mem_ctx, sid);
if (b->lpSid == NULL) {
return WERR_NOT_ENOUGH_MEMORY;
}
*p = b;
return WERR_INVALID_LEVEL;
return WERR_OK;
}
static WERROR libnet_odj_compose_OP_PACKAGE_PART(TALLOC_CTX *mem_ctx,