urlpre = strdup( optarg );
break;
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 ) {
fprintf( stderr, _("%s: invalid timelimit (%d) specified\n"),
prog, timelimit );
++includeufn;
break;
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;
default:
return 0;
(zero) removes the
.B ldap.conf
limit.
+A timelimit of
+.I none
+uses
+.I maxInt
+(2147483647, RFC 2251) as timelimit.
A server may impose a maximal timelimit which only
the root user may override.
.TP
(zero) removes the
.B ldap.conf
limit.
+A sizelimit of
+.I none
+uses
+.I maxInt
+(2147483647, RFC 2251) as sizelimit.
A server may impose a maximal sizelimit which only
the root user may override.
.TP