diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-01-12 16:22:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:47 -0500 |
commit | c0b55c0e3b49f23d31e58c7668a8ebfe869e9e55 (patch) | |
tree | 6c4b5314aa3e3278366fa7ae19a36094a445d1a6 /source4/rpc_server | |
parent | a2f77f979d7271a9708ed06f43b00ffb10ec7f4c (diff) | |
download | samba-c0b55c0e3b49f23d31e58c7668a8ebfe869e9e55.tar.gz samba-c0b55c0e3b49f23d31e58c7668a8ebfe869e9e55.tar.bz2 samba-c0b55c0e3b49f23d31e58c7668a8ebfe869e9e55.zip |
r4715: alwys add the distinguishedName attribute
the w2k3 dc join needs that
metze
(This used to be commit 29bc75ba28f8c73fe22878948ed43c41faee474c)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index c3ec8bf80f..fce4dd43be 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -528,6 +528,7 @@ static NTSTATUS samr_CreateDomainGroup(struct dcesrv_call_state *dce_call, TALLO if (!msg->dn) { return NT_STATUS_NO_MEMORY; } + samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "distinguishedName", msg->dn); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "name", groupname); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "cn", groupname); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "sAMAccountName", groupname); @@ -795,6 +796,7 @@ static NTSTATUS samr_CreateUser2(struct dcesrv_call_state *dce_call, TALLOC_CTX if (!msg->dn) { return NT_STATUS_NO_MEMORY; } + samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "distinguishedName", msg->dn); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "name", account_name); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "cn", account_name); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "sAMAccountName", account_name); @@ -1014,6 +1016,7 @@ static NTSTATUS samr_CreateDomAlias(struct dcesrv_call_state *dce_call, TALLOC_C return NT_STATUS_NO_MEMORY; } + samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "distinguishedName", msg->dn); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "name", aliasname); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "cn", aliasname); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "sAMAccountName", aliasname); @@ -2159,6 +2162,8 @@ static NTSTATUS samr_AddAliasMember(struct dcesrv_call_state *dce_call, TALLOC_C memberdn = msg->dn; samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, + "distinguishedName", msg->dn); + samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "name", sidstr); samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "objectClass", |