From d75803ed3f95e1db2affe2ae19f9ac31a0699743 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 11 Aug 2011 12:16:01 +0200 Subject: [PATCH] use ldap_search_ext(timelimit) instead of ldap_set_option(LDAP_OPT_TIMELIMIT) (related to ITS#7009) --- clients/tools/ldapsearch.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 8bcbb9b767..f295c3e613 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -779,22 +779,6 @@ private_conn_setup( LDAP *ld ) fprintf( stderr, _("Could not set LDAP_OPT_DEREF %d\n"), deref ); exit( EXIT_FAILURE ); } - if (timelimit > 0 && - ldap_set_option( ld, LDAP_OPT_TIMELIMIT, (void *) &timelimit ) - != LDAP_OPT_SUCCESS ) - { - fprintf( stderr, - _("Could not set LDAP_OPT_TIMELIMIT %d\n"), timelimit ); - exit( EXIT_FAILURE ); - } - if (sizelimit > 0 && - ldap_set_option( ld, LDAP_OPT_SIZELIMIT, (void *) &sizelimit ) - != LDAP_OPT_SUCCESS ) - { - fprintf( stderr, - _("Could not set LDAP_OPT_SIZELIMIT %d\n"), sizelimit ); - exit( EXIT_FAILURE ); - } } int -- 2.39.5