1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3-lsa: support secret objects in _lsa_DeleteObject().

Guenther
This commit is contained in:
Günther Deschner 2009-10-30 00:05:07 +01:00
parent caa0cc76b0
commit 1387095990

View File

@ -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;
}