summaryrefslogtreecommitdiffstats
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-09-07 07:31:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:23 -0500
commit985c7a0b20caa6928308c7a80b1c86cc238be0d0 (patch)
treeb6eb43a49ca6b0df58229d55320565b0354324e1 /source4/rpc_server
parent1d95a18a9ba6ce7af871c78c73844b603582ab75 (diff)
downloadsamba-985c7a0b20caa6928308c7a80b1c86cc238be0d0.tar.gz
samba-985c7a0b20caa6928308c7a80b1c86cc238be0d0.tar.xz
samba-985c7a0b20caa6928308c7a80b1c86cc238be0d0.zip
r24987: Clarify error conditions in secrets handling, before I add ACLs to
secrets.ldb Andrew Bartlett (This used to be commit 17a61bd5690f60d762b9c7171f1269fe1a311bab)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 531cfc49e5..326217e63f 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -2301,7 +2301,7 @@ static NTSTATUS dcesrv_lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALL
DEBUG(0,("Failed to create secret record %s: %s\n",
ldb_dn_get_linearized(msg->dn),
ldb_errstring(secret_state->sam_ldb)));
- return NT_STATUS_INTERNAL_DB_CORRUPTION;
+ return NT_STATUS_ACCESS_DENIED;
}
handle = dcesrv_handle_new(dce_call->context, LSA_HANDLE_SECRET);
@@ -2398,8 +2398,8 @@ static NTSTATUS dcesrv_lsa_OpenSecret(struct dcesrv_call_state *dce_call, TALLOC
}
if (ret != 1) {
- DEBUG(0,("Found %d records matching DN %s\n", ret,
- ldb_dn_get_linearized(policy_state->system_dn)));
+ DEBUG(0,("Found %d records matching CN=%s\n",
+ ret, ldb_binary_encode_string(mem_ctx, name)));
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
}