summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-12-27 03:23:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:30:15 -0500
commit6b236024dabe659e84ebd7b5735b4eeb4954b4f2 (patch)
tree09c63cb497b480e96b780d9d2a77e15f4be3c36f /source4
parentea4c64388bb00f41a083fb37a2689ae09f33399b (diff)
downloadsamba-6b236024dabe659e84ebd7b5735b4eeb4954b4f2.tar.gz
samba-6b236024dabe659e84ebd7b5735b4eeb4954b4f2.tar.bz2
samba-6b236024dabe659e84ebd7b5735b4eeb4954b4f2.zip
r20354: Trusted domains don't have a surname, I think we want 'cn' here.
Andrew Bartlett (This used to be commit 05debeaced7296762b293cc804a71abcfb096066)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 4a207645b4..2c760952f0 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -833,11 +833,10 @@ static NTSTATUS lsa_CreateTrustedDomain(struct dcesrv_call_state *dce_call, TALL
}
msg->dn = ldb_dn_copy(mem_ctx, policy_state->system_dn);
- if ( ! ldb_dn_add_child_fmt(msg->dn, "sn=%s", r->in.info->name.string)) {
+ if ( ! ldb_dn_add_child_fmt(msg->dn, "cn=%s", name)) {
return NT_STATUS_NO_MEMORY;
}
- samdb_msg_add_string(trusted_domain_state->policy->sam_ldb, mem_ctx, msg, "cn", name);
samdb_msg_add_string(trusted_domain_state->policy->sam_ldb, mem_ctx, msg, "flatname", name);
if (r->in.info->sid) {