From 13870959908250ff5d475ff2bc83f364884a51d9 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 30 Oct 2009 00:05:07 +0100 Subject: s3-lsa: support secret objects in _lsa_DeleteObject(). Guenther --- source3/rpc_server/lsa/srv_lsa_nt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c index 32ea852629..a42a22d911 100644 --- a/source3/rpc_server/lsa/srv_lsa_nt.c +++ b/source3/rpc_server/lsa/srv_lsa_nt.c @@ -2477,6 +2477,12 @@ NTSTATUS _lsa_DeleteObject(struct pipes_struct *p, } status = NT_STATUS_OK; break; + case LSA_HANDLE_SECRET_TYPE: + status = pdb_delete_secret(info->name); + if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) { + return NT_STATUS_INVALID_HANDLE; + } + break; default: return NT_STATUS_INVALID_HANDLE; } -- cgit