summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-09-07 14:30:34 +0200
committerGünther Deschner <gd@samba.org>2011-02-16 12:58:13 +0100
commitbfa7964da8e69e35b7a156fc4fdba753d7dee1cc (patch)
tree1bcc11c010e437a1888d25041681398dcfac9f98 /source3/rpc_server
parent77638169681ce5da6a3f7705b16a8f2b5d261671 (diff)
downloadsamba-bfa7964da8e69e35b7a156fc4fdba753d7dee1cc.tar.gz
samba-bfa7964da8e69e35b7a156fc4fdba753d7dee1cc.tar.bz2
samba-bfa7964da8e69e35b7a156fc4fdba753d7dee1cc.zip
s3-ipasam: Add aliases for trusted domain user
Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Feb 16 12:58:13 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/lsa/srv_lsa_nt.c4
1 files changed, 3 insertions, 1 deletions
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;