diff options
author | Amitay Isaacs <amitay@gmail.com> | 2011-08-18 15:08:22 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-08-19 16:35:02 +1000 |
commit | 0fef5a3a268219adea8f9a4614abe1f90f1d845e (patch) | |
tree | 485ef3760d98fc43cf168ad70b6239214f8ac396 /source3 | |
parent | 1c1f4e27a89946f4fd551358bc25fe04ad621ea4 (diff) | |
download | samba-0fef5a3a268219adea8f9a4614abe1f90f1d845e.tar.gz samba-0fef5a3a268219adea8f9a4614abe1f90f1d845e.tar.bz2 samba-0fef5a3a268219adea8f9a4614abe1f90f1d845e.zip |
s3-passdb: Fix call for search_aliases(). It returns bool and not NTSTATUS.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/py_passdb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c index c4f0508c08..54dbb0d389 100644 --- a/source3/passdb/py_passdb.c +++ b/source3/passdb/py_passdb.c @@ -2482,7 +2482,6 @@ static PyObject *py_pdb_search_groups(pytalloc_Object *self) static PyObject *py_pdb_search_aliases(pytalloc_Object *self, PyObject *args) { - NTSTATUS status; struct pdb_methods *methods; TALLOC_CTX *tframe; struct pdb_search *search; @@ -2512,9 +2511,7 @@ static PyObject *py_pdb_search_aliases(pytalloc_Object *self, PyObject *args) } 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; } |