From bfa7964da8e69e35b7a156fc4fdba753d7dee1cc Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 7 Sep 2010 14:30:34 +0200 Subject: s3-ipasam: Add aliases for trusted domain user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner Autobuild-User: Günther Deschner Autobuild-Date: Wed Feb 16 12:58:13 CET 2011 on sn-devel-104 --- source3/rpc_server/lsa/srv_lsa_nt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c index dee679eb79..9f05433631 100644 --- a/source3/rpc_server/lsa/srv_lsa_nt.c +++ b/source3/rpc_server/lsa/srv_lsa_nt.c @@ -1601,6 +1601,7 @@ NTSTATUS _lsa_OpenTrustedDomainByName(struct pipes_struct *p, static NTSTATUS add_trusted_domain_user(TALLOC_CTX *mem_ctx, const char *netbios_name, + const char *domain_name, struct trustDomainPasswords auth_struct) { NTSTATUS status; @@ -1625,7 +1626,7 @@ static NTSTATUS add_trusted_domain_user(TALLOC_CTX *mem_ctx, return NT_STATUS_UNSUCCESSFUL; } - if (!pdb_set_domain(sam_acct, get_global_sam_name(), PDB_SET)) { + if (!pdb_set_domain(sam_acct, domain_name, PDB_SET)) { return NT_STATUS_UNSUCCESSFUL; } @@ -1787,6 +1788,7 @@ NTSTATUS _lsa_CreateTrustedDomainEx2(struct pipes_struct *p, if (r->in.info->trust_direction & LSA_TRUST_DIRECTION_INBOUND) { status = add_trusted_domain_user(p->mem_ctx, r->in.info->netbios_name.string, + r->in.info->domain_name.string, auth_struct); if (!NT_STATUS_IS_OK(status)) { return status; -- cgit