From ca9cf2c319d1a6ad4caf43e39812ec41d6484fbd Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 28 Oct 2007 13:33:31 +0000 Subject: remove sizelimit parameter git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@473 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/ldap-nss.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nslcd/ldap-nss.c') diff --git a/nslcd/ldap-nss.c b/nslcd/ldap-nss.c index 4df3718..db6fc70 100644 --- a/nslcd/ldap-nss.c +++ b/nslcd/ldap-nss.c @@ -694,7 +694,7 @@ static enum nss_status do_result_async(MYLDAP_SEARCH *search) */ static int do_search_async( MYLDAP_SESSION *session,const char *base,int scope, - const char *filter,char **attrs,int sizelimit,int *msgid) + const char *filter,char **attrs,int *msgid) { int rc; LDAPControl *serverCtrls[2]; @@ -711,7 +711,7 @@ static int do_search_async( else pServerCtrls=NULL; rc=ldap_search_ext(session->ls_conn,base,scope,filter,(char **)attrs, - 0,pServerCtrls,NULL,LDAP_NO_LIMIT,sizelimit,msgid); + 0,pServerCtrls,NULL,LDAP_NO_LIMIT,LDAP_NO_LIMIT,msgid); if (pServerCtrls!=NULL) { ldap_control_free(serverCtrls[0]); @@ -726,7 +726,7 @@ static int do_search_async( */ static enum nss_status do_with_reconnect( MYLDAP_SESSION *session,const char *base,int scope, - const char *filter,char **attrs,int sizelimit, + const char *filter,char **attrs, int *msgid) { int rc=LDAP_UNAVAILABLE, tries=0, backoff=0; @@ -757,7 +757,7 @@ static enum nss_status do_with_reconnect( if (do_open(session)==0) { /* we're using the asycnhronous API */ - stat=do_map_error(do_search_async(session,base,scope,filter,attrs,sizelimit,msgid)); + stat=do_map_error(do_search_async(session,base,scope,filter,attrs,msgid)); /* if we got any feedback from the server, don't try other ones */ if (stat!=NSS_STATUS_UNAVAIL) break; @@ -858,7 +858,7 @@ MYLDAP_SEARCH *myldap_search( /* set up a new search */ if (do_with_reconnect(search->session,search->base, search->scope,search->filter,search->attrs, - LDAP_NO_LIMIT,&msgid)!=NSS_STATUS_SUCCESS) + &msgid)!=NSS_STATUS_SUCCESS) { myldap_search_free(search); return NULL; -- cgit v1.2.3