mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
helper for unlimited time/size limits request
This commit is contained in:
parent
f0d15d3aa0
commit
bbbe0db326
@ -428,7 +428,12 @@ handle_private_option( int i )
|
|||||||
urlpre = strdup( optarg );
|
urlpre = strdup( optarg );
|
||||||
break;
|
break;
|
||||||
case 'l': /* time limit */
|
case 'l': /* time limit */
|
||||||
timelimit = atoi( optarg );
|
if ( strcasecmp( optarg, "none" ) == 0 ) {
|
||||||
|
/* maxInt as per RFC 4.1.1. Message Envelope */
|
||||||
|
sizelimit = 2147483647;
|
||||||
|
} else {
|
||||||
|
timelimit = atoi( optarg );
|
||||||
|
}
|
||||||
if( timelimit < 0 ) {
|
if( timelimit < 0 ) {
|
||||||
fprintf( stderr, _("%s: invalid timelimit (%d) specified\n"),
|
fprintf( stderr, _("%s: invalid timelimit (%d) specified\n"),
|
||||||
prog, timelimit );
|
prog, timelimit );
|
||||||
@ -470,7 +475,12 @@ handle_private_option( int i )
|
|||||||
++includeufn;
|
++includeufn;
|
||||||
break;
|
break;
|
||||||
case 'z': /* size limit */
|
case 'z': /* size limit */
|
||||||
sizelimit = atoi( optarg );
|
if ( strcasecmp( optarg, "none" ) == 0 ) {
|
||||||
|
/* maxInt as per RFC 4.1.1. Message Envelope */
|
||||||
|
sizelimit = 2147483647;
|
||||||
|
} else {
|
||||||
|
sizelimit = atoi( optarg );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -227,6 +227,11 @@ timelimit of
|
|||||||
(zero) removes the
|
(zero) removes the
|
||||||
.B ldap.conf
|
.B ldap.conf
|
||||||
limit.
|
limit.
|
||||||
|
A timelimit of
|
||||||
|
.I none
|
||||||
|
uses
|
||||||
|
.I maxInt
|
||||||
|
(2147483647, RFC 2251) as timelimit.
|
||||||
A server may impose a maximal timelimit which only
|
A server may impose a maximal timelimit which only
|
||||||
the root user may override.
|
the root user may override.
|
||||||
.TP
|
.TP
|
||||||
@ -237,6 +242,11 @@ of
|
|||||||
(zero) removes the
|
(zero) removes the
|
||||||
.B ldap.conf
|
.B ldap.conf
|
||||||
limit.
|
limit.
|
||||||
|
A sizelimit of
|
||||||
|
.I none
|
||||||
|
uses
|
||||||
|
.I maxInt
|
||||||
|
(2147483647, RFC 2251) as sizelimit.
|
||||||
A server may impose a maximal sizelimit which only
|
A server may impose a maximal sizelimit which only
|
||||||
the root user may override.
|
the root user may override.
|
||||||
.TP
|
.TP
|
||||||
|
Loading…
Reference in New Issue
Block a user