diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-07 14:30:11 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-07 14:36:39 +0200 |
commit | 076ca26cfe9e8594204e6bdccfda4b5d77d6ac7c (patch) | |
tree | 9946bd83bc5d335973418945eaecf3ea50988180 /source4/rpc_server/lsa | |
parent | fb914640ad656b146f732ab33063575e2e47e37c (diff) | |
download | samba-076ca26cfe9e8594204e6bdccfda4b5d77d6ac7c.tar.gz samba-076ca26cfe9e8594204e6bdccfda4b5d77d6ac7c.tar.bz2 samba-076ca26cfe9e8594204e6bdccfda4b5d77d6ac7c.zip |
s4:templates - Remove the latest relics (in "dcesrv_lsa_CreateSecret")
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index 2b4a891556..7bde42ccc1 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -2129,7 +2129,6 @@ static NTSTATUS dcesrv_lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALL struct lsa_secret_state *secret_state; struct dcesrv_handle *handle; struct ldb_message **msgs, *msg; - const char *errstr; const char *attrs[] = { NULL }; @@ -2233,15 +2232,6 @@ static NTSTATUS dcesrv_lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALL samdb_msg_add_string(secret_state->sam_ldb, mem_ctx, msg, "cn", name); } - /* pull in all the template attributes. Note this is always from the global samdb */ - ret = samdb_copy_template(secret_state->policy->sam_ldb, msg, - "secret", &errstr); - if (ret != 0) { - DEBUG(0,("Failed to load TemplateSecret from samdb: %s\n", - errstr)); - return NT_STATUS_INTERNAL_DB_CORRUPTION; - } - samdb_msg_add_string(secret_state->sam_ldb, mem_ctx, msg, "objectClass", "secret"); secret_state->secret_dn = talloc_reference(secret_state, msg->dn); |