summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-07-16 14:32:18 +0200
committerGünther Deschner <gd@samba.org>2011-07-31 22:37:26 +0200
commitb98145edc92c739c8ad796f63373ec81bab41ca9 (patch)
tree7dc83576050ec6b6a3d25bca3d5b0125ef53192e
parentff1907012a6552eb5f18b40a14465a9cf2ff9f0e (diff)
downloadsamba-b98145edc92c739c8ad796f63373ec81bab41ca9.tar.gz
samba-b98145edc92c739c8ad796f63373ec81bab41ca9.tar.bz2
samba-b98145edc92c739c8ad796f63373ec81bab41ca9.zip
s3-lsa: Fix _lsa_DeleteObject to handle trusted domain objects.
Guenther
-rw-r--r--source3/rpc_server/lsa/srv_lsa_nt.c6
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 5877c7b295..0f0aaab463 100644
--- a/source3/rpc_server/lsa/srv_lsa_nt.c
+++ b/source3/rpc_server/lsa/srv_lsa_nt.c
@@ -2188,6 +2188,12 @@ NTSTATUS _lsa_DeleteObject(struct pipes_struct *p,
return status;
}
break;
+ case LSA_HANDLE_TRUST_TYPE:
+ if (!pdb_del_trusteddom_pw(info->name)) {
+ return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+ }
+ status = NT_STATUS_OK;
+ break;
default:
return NT_STATUS_INVALID_HANDLE;
}