diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-25 18:10:40 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-25 18:10:40 +0100 |
commit | 364d83c5b955c254287b448d414481f9f5d921a7 (patch) | |
tree | 5b01db426c45550ef0c4a078eadc324a284f37e5 /nslcd/myldap.h | |
parent | 35c147a6fc15b787d88be6f0fb54bc9650d52731 (diff) |
have myldap_get_entry() return an LDAP status code that can signal errors in the lookup
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@531 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/myldap.h')
-rw-r--r-- | nslcd/myldap.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nslcd/myldap.h b/nslcd/myldap.h index 10f54c4..5efb287 100644 --- a/nslcd/myldap.h +++ b/nslcd/myldap.h @@ -20,7 +20,7 @@ 02110-1301 USA */ -/* +/* This file describes the API of the myldap module which takes the complexity out of using the OpenLDAP library. Memory management, paging, reconnect logic, idle timeout of connections, etc is taken care of by the module. @@ -86,8 +86,9 @@ void myldap_search_close(MYLDAP_SEARCH *search); no more entries are available). Note that any memory allocated to return information about the previous entry (e.g. with myldap_get_values()) is freed with this call. The search is autoamtically closed when no more - results are available. */ -MUST_USE MYLDAP_ENTRY *myldap_get_entry(MYLDAP_SEARCH *search); + results are available. The function returns an LDAP status code in the + location pointed to by rcp if it is non-NULL. */ +MUST_USE MYLDAP_ENTRY *myldap_get_entry(MYLDAP_SEARCH *search,int *rcp); /* Get the DN from the entry. This function does not return NULL (on error "unknown" is returned). */ |