summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-10-21 08:23:20 +0000
committerTim Potter <tpot@samba.org>2002-10-21 08:23:20 +0000
commit4eb2eab364b327d1498d9eb36c743434b689c1e1 (patch)
tree6b9639d90f13caafe40f094f0bc0d00cb5bfee27 /source3
parent3b8d11fe503a1e53d7f6a7f1714014253f2b90e3 (diff)
downloadsamba-4eb2eab364b327d1498d9eb36c743434b689c1e1.tar.gz
samba-4eb2eab364b327d1498d9eb36c743434b689c1e1.tar.bz2
samba-4eb2eab364b327d1498d9eb36c743434b689c1e1.zip
Whoops - this should be in py_smb.c
(This used to be commit b740c7e5050b18bc06865451bed3daf3ae09c609)
Diffstat (limited to 'source3')
-rw-r--r--source3/python/py_samba.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/source3/python/py_samba.c b/source3/python/py_samba.c
index 32b99ca7e9..c0ade12f65 100644
--- a/source3/python/py_samba.c
+++ b/source3/python/py_samba.c
@@ -31,58 +31,6 @@ static PyObject *lsa_open_policy(PyObject *self, PyObject *args,
return NULL;
}
-static PyObject *samba_query_secdesc(PyObject *self, PyObject *args,
- PyObject *kw)
-{
- static char *kwlist[] = { NULL };
- PyObject *py_secdesc;
- SEC_DESC *secdesc = NULL;
-
- /* Parse parameters */
-
- if (!PyArg_ParseTupleAndKeywords(
- args, kw, "", kwlist))
- return NULL;
-
- /* FIXME: Fetch security descriptor with cli_query_secdesc*/
-
- if (!py_from_SECDESC(&py_secdesc, secdesc)) {
- PyErr_SetString(
- PyExc_TypeError,
- "Invalid security descriptor returned");
- return NULL;
- }
-
- return py_secdesc;
-
-}
-
-static PyObject *samba_set_secdesc(PyObject *self, PyObject *args,
- PyObject *kw)
-{
- static char *kwlist[] = { "security_descriptor", NULL };
- PyObject *py_secdesc;
- SEC_DESC *secdesc;
- TALLOC_CTX *mem_ctx = talloc_init();
-
- /* Parse parameters */
-
- if (!PyArg_ParseTupleAndKeywords(
- args, kw, "O", kwlist, &py_secdesc))
- return NULL;
-
- if (!py_to_SECDESC(&secdesc, py_secdesc, mem_ctx)) {
- PyErr_SetString(PyExc_TypeError,
- "Invalid security descriptor");
- return NULL;
- }
-
- /* FIXME: call cli_set_secdesc() to set security descriptor */
-
- Py_INCREF(Py_None);
- return Py_None;
-}
-
static PyMethodDef samba_methods[] = {
{ NULL }
};