summaryrefslogtreecommitdiffstats
path: root/source3/passdb/py_passdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/py_passdb.c')
-rw-r--r--source3/passdb/py_passdb.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c
index 2d3b6371b31..dec45c3a5c4 100644
--- a/source3/passdb/py_passdb.c
+++ b/source3/passdb/py_passdb.c
@@ -2483,7 +2483,6 @@ static PyObject *py_pdb_set_account_policy(pytalloc_Object *self, PyObject *args
static PyObject *py_pdb_search_users(pytalloc_Object *self, PyObject *args)
{
TALLOC_CTX *frame = talloc_stackframe();
- NTSTATUS status;
struct pdb_methods *methods;
unsigned int acct_flags;
struct pdb_search *search;
@@ -2505,9 +2504,7 @@ static PyObject *py_pdb_search_users(pytalloc_Object *self, PyObject *args)
}
if (!methods->search_users(methods, search, acct_flags)) {
- PyErr_Format(py_pdb_error, "Unable to search users, (%d,%s)",
- NT_STATUS_V(status),
- get_friendly_nt_error_msg(status));
+ PyErr_Format(py_pdb_error, "Unable to search users");
talloc_free(frame);
return NULL;
}
@@ -2550,7 +2547,6 @@ static PyObject *py_pdb_search_users(pytalloc_Object *self, PyObject *args)
static PyObject *py_pdb_search_groups(pytalloc_Object *self)
{
TALLOC_CTX *frame = talloc_stackframe();
- NTSTATUS status;
struct pdb_methods *methods;
struct pdb_search *search;
struct samr_displayentry *entry;
@@ -2566,9 +2562,7 @@ static PyObject *py_pdb_search_groups(pytalloc_Object *self)
}
if (!methods->search_groups(methods, search)) {
- PyErr_Format(py_pdb_error, "Unable to search groups, (%d,%s)",
- NT_STATUS_V(status),
- get_friendly_nt_error_msg(status));
+ PyErr_Format(py_pdb_error, "Unable to search groups");
talloc_free(frame);
return NULL;
}