diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-04-04 02:20:52 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-04-06 13:12:43 +0200 |
commit | 449bdf35432230b060387856637759e2fe7022d6 (patch) | |
tree | 444078f900e05ec6e2895a43f36ed25bdd71630c /source4/scripting/python/pyglue.c | |
parent | 55b98e9768cb2a1ae4b9cc83e3d5f33b51b22e8f (diff) | |
download | samba-449bdf35432230b060387856637759e2fe7022d6.tar.gz samba-449bdf35432230b060387856637759e2fe7022d6.tar.bz2 samba-449bdf35432230b060387856637759e2fe7022d6.zip |
s4-python: Move set_session_info to PySambaLdb.
Diffstat (limited to 'source4/scripting/python/pyglue.c')
-rw-r--r-- | source4/scripting/python/pyglue.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/source4/scripting/python/pyglue.c b/source4/scripting/python/pyglue.c index b044796b52..8639958561 100644 --- a/source4/scripting/python/pyglue.c +++ b/source4/scripting/python/pyglue.c @@ -117,27 +117,6 @@ static PyObject *py_set_debug_level(PyObject *self, PyObject *args) Py_RETURN_NONE; } -static PyObject *py_ldb_set_session_info(PyObject *self, PyObject *args) -{ - PyObject *py_session_info, *py_ldb; - struct auth_session_info *info; - struct ldb_context *ldb; - if (!PyArg_ParseTuple(args, "OO", &py_ldb, &py_session_info)) - return NULL; - - PyErr_LDB_OR_RAISE(py_ldb, ldb); - /*if (!PyAuthSession_Check(py_session_info)) { - PyErr_SetString(PyExc_TypeError, "Expected session info object"); - return NULL; - }*/ - - info = PyAuthSession_AsSession(py_session_info); - - ldb_set_opaque(ldb, "sessionInfo", info); - - Py_RETURN_NONE; -} - static PyObject *py_samdb_set_domain_sid(PyLdbObject *self, PyObject *args) { PyObject *py_ldb, *py_sid; @@ -463,9 +442,6 @@ static PyMethodDef py_misc_methods[] = { "Generate random password with a length >= min and <= max." }, { "unix2nttime", (PyCFunction)py_unix2nttime, METH_VARARGS, "unix2nttime(timestamp) -> nttime" }, - { "ldb_set_session_info", (PyCFunction)py_ldb_set_session_info, METH_VARARGS, - "ldb_set_session_info(ldb, session_info)\n" - "Set session info to use when connecting." }, { "samdb_set_domain_sid", (PyCFunction)py_samdb_set_domain_sid, METH_VARARGS, "samdb_set_domain_sid(samdb, sid)\n" "Set SID of domain to use." }, |