1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3-lsa: implement _lsa_CreateTrustedDomain().

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Günther Deschner 2009-07-16 14:34:06 +02:00
parent 55bc1cfae3
commit 39c9f59dba

View File

@ -1531,12 +1531,32 @@ NTSTATUS _lsa_CreateTrustedDomainEx(struct pipes_struct *p,
}
/***************************************************************************
_lsa_CreateTrustedDomain
***************************************************************************/
NTSTATUS _lsa_CreateTrustedDomain(struct pipes_struct *p,
struct lsa_CreateTrustedDomain *r)
{
return NT_STATUS_ACCESS_DENIED;
struct lsa_CreateTrustedDomainEx2 c;
struct lsa_TrustDomainInfoInfoEx info;
struct lsa_TrustDomainInfoAuthInfoInternal auth_info;
ZERO_STRUCT(auth_info);
info.domain_name = r->in.info->name;
info.netbios_name = r->in.info->name;
info.sid = r->in.info->sid;
info.trust_direction = LSA_TRUST_DIRECTION_OUTBOUND;
info.trust_type = LSA_TRUST_TYPE_DOWNLEVEL;
info.trust_attributes = 0;
c.in.policy_handle = r->in.policy_handle;
c.in.info = &info;
c.in.auth_info = &auth_info;
c.in.access_mask = r->in.access_mask;
c.out.trustdom_handle = r->out.trustdom_handle;
return _lsa_CreateTrustedDomainEx2(p, &c);
}
/***************************************************************************