mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
use ldap_search_ext(timelimit) instead of ldap_set_option(LDAP_OPT_TIMELIMIT) (related to ITS#7009)
This commit is contained in:
parent
e080ba6e9d
commit
d75803ed3f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user