diff options
author | Günther Deschner <gd@samba.org> | 2009-10-30 00:05:07 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-07-31 22:37:27 +0200 |
commit | 13870959908250ff5d475ff2bc83f364884a51d9 (patch) | |
tree | 4bdec3f6d2da93316bf100c9b4b0ce5ebabe4033 | |
parent | caa0cc76b01d160911875d4c68a2a5495022e990 (diff) | |
download | samba-13870959908250ff5d475ff2bc83f364884a51d9.tar.gz samba-13870959908250ff5d475ff2bc83f364884a51d9.tar.bz2 samba-13870959908250ff5d475ff2bc83f364884a51d9.zip |
s3-lsa: support secret objects in _lsa_DeleteObject().
Guenther
-rw-r--r-- | source3/rpc_server/lsa/srv_lsa_nt.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |