From e821576129907d89a812edde45121d365a1f696d Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Wed, 18 Jun 2014 17:31:53 +0200 Subject: Clarify LDAPClient docstrings about get_entry, get_entries and find_entries Reviewed-By: Martin Basti --- ipapython/ipaldap.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ipapython/ipaldap.py') diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index 677e4f807..21706cff0 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -1392,7 +1392,9 @@ class LDAPClient(object): attrs_list=None): """Return a list of matching entries. - Raises an error if the list is truncated by the server + :raises: errors.LimitsExceeded if the list is truncated by the server + :raises: errors.NotFound if result set is empty + or base_dn doesn't exist :param base_dn: dn of the entry at which to start the search :param scope: search scope, see LDAP docs (default ldap2.SCOPE_SUBTREE) @@ -1426,6 +1428,9 @@ class LDAPClient(object): search_refs -- allow search references to be returned (default skips these entries) paged_search -- search using paged results control + + :raises: errors.NotFound if result set is empty + or base_dn doesn't exist """ if base_dn is None: base_dn = DN() -- cgit