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