From 364d83c5b955c254287b448d414481f9f5d921a7 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 25 Dec 2007 17:10:40 +0000 Subject: 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 --- nslcd/myldap.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'nslcd/myldap.h') 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). */ -- cgit v1.2.3