diff options
author | Simo Sorce <idra@samba.org> | 2005-08-18 16:18:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:33:33 -0500 |
commit | ac90ddfdb28050912ecab0e998089b93216c5c35 (patch) | |
tree | cb37f9654b81ec3575466689cd130dd8c92b48fd /source4/rpc_server/lsa | |
parent | 3e4c4cff2177af33efdb15f03a1bbcb639505cee (diff) | |
download | samba-ac90ddfdb28050912ecab0e998089b93216c5c35.tar.gz samba-ac90ddfdb28050912ecab0e998089b93216c5c35.tar.xz samba-ac90ddfdb28050912ecab0e998089b93216c5c35.zip |
r9392: Fix ldb_dn_compose to make build farm happy
Add ldb_dn_string_compose so that you can build a dn starting from a
struct ldb_dn base and a set of parameters to be composed in a format
string with the same syntax of printf
(This used to be commit 31c69d0655752cc8ea3bc5b7ea87792291302091)
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index 9ee0d6faec3..bac25fcc241 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -1774,10 +1774,7 @@ static NTSTATUS lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALLOC_CTX return NT_STATUS_INTERNAL_DB_CORRUPTION; } - msg->dn = ldb_dn_build_child(mem_ctx, - "cn", name, - ldb_dn_build_child(mem_ctx, - "cn", "LSA Secrets", NULL)); + msg->dn = ldb_dn_string_compose(mem_ctx, NULL, "cn=%s,cn=LSA Secrets", name); samdb_msg_add_string(secret_state->sam_ldb, mem_ctx, msg, "cn", name); } |