]> git.sur5r.net Git - openldap/commitdiff
use ldap_search_ext(timelimit) instead of ldap_set_option(LDAP_OPT_TIMELIMIT) (relate...
authorPierangelo Masarati <ando@OpenLDAP.org>
Thu, 11 Aug 2011 10:16:01 +0000 (12:16 +0200)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 5 Oct 2011 23:46:55 +0000 (16:46 -0700)
clients/tools/ldapsearch.c

index 271a1bec726df0848daae9887105a960e1d79ce5..4eeca808b902b5cff7fa0ea0aa65ea61a04c48ea 100644 (file)
@@ -769,22 +769,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