Signed-off-by: Andrew Bartlett <abartlet@samba.org>
static PyObject *py_pdb_search_aliases(pytalloc_Object *self, PyObject *args)
{
- NTSTATUS status;
struct pdb_methods *methods;
TALLOC_CTX *tframe;
struct pdb_search *search;
}
if (!methods->search_aliases(methods, search, dom_sid)) {
- PyErr_Format(py_pdb_error, "Unable to search aliases, (%d,%s)",
- NT_STATUS_V(status),
- get_friendly_nt_error_msg(status));
+ PyErr_Format(py_pdb_error, "Unable to search aliases");
talloc_free(tframe);
return NULL;
}