Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Barchiesi
OpenLDAP
Commits
671e3c76
Commit
671e3c76
authored
20 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
allow max for time/size limits
parent
73202e39
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
clients/tools/ldapsearch.c
+16
-2
16 additions, 2 deletions
clients/tools/ldapsearch.c
doc/man/man1/ldapsearch.1
+6
-0
6 additions, 0 deletions
doc/man/man1/ldapsearch.1
with
22 additions
and
2 deletions
clients/tools/ldapsearch.c
+
16
−
2
View file @
671e3c76
...
...
@@ -116,7 +116,7 @@ usage( void )
fprintf
(
stderr
,
_
(
" [!]sync=ro[/<cookie>] (LDAP Sync refreshOnly)
\n
"
));
fprintf
(
stderr
,
_
(
" rp[/<cookie>][/<slimit>] (LDAP Sync refreshAndPersist)
\n
"
));
fprintf
(
stderr
,
_
(
" -F prefix URL prefix for files (default: %s)
\n
"
),
def_urlpre
);
fprintf
(
stderr
,
_
(
" -l limit time limit (in seconds) for search
\n
"
));
fprintf
(
stderr
,
_
(
" -l limit time limit (in seconds
, or
\"
none
\"
or
\"
max
\"
) for search
\n
"
));
fprintf
(
stderr
,
_
(
" -L print responses in LDIFv1 format
\n
"
));
fprintf
(
stderr
,
_
(
" -LL print responses in LDIF format without comments
\n
"
));
fprintf
(
stderr
,
_
(
" -LLL print responses in LDIF format without comments
\n
"
));
...
...
@@ -127,7 +127,7 @@ usage( void )
fprintf
(
stderr
,
_
(
" -tt write all values to files in temporary directory
\n
"
));
fprintf
(
stderr
,
_
(
" -T path write files to directory specified by path (default: %s)
\n
"
),
def_tmpdir
);
fprintf
(
stderr
,
_
(
" -u include User Friendly entry names in the output
\n
"
));
fprintf
(
stderr
,
_
(
" -z limit size limit (in entries) for search
\n
"
));
fprintf
(
stderr
,
_
(
" -z limit size limit (in entries
, or
\"
none
\"
or
\"
max
\"
) for search
\n
"
));
tool_common_usage
();
exit
(
EXIT_FAILURE
);
}
...
...
@@ -436,6 +436,13 @@ handle_private_option( int i )
case
'l'
:
/* time limit */
if
(
strcasecmp
(
optarg
,
"none"
)
==
0
)
{
timelimit
=
0
;
}
else
if
(
strcasecmp
(
optarg
,
"max"
)
==
0
)
{
/* RFC 2251:
maxInt INTEGER ::= 2147483647 -- (2^^31 - 1) --
*/
timelimit
=
2147483647
;
}
else
{
ival
=
strtol
(
optarg
,
&
next
,
10
);
if
(
next
==
NULL
||
next
[
0
]
!=
'\0'
)
{
...
...
@@ -487,6 +494,13 @@ handle_private_option( int i )
case
'z'
:
/* size limit */
if
(
strcasecmp
(
optarg
,
"none"
)
==
0
)
{
sizelimit
=
0
;
}
else
if
(
strcasecmp
(
optarg
,
"max"
)
==
0
)
{
/* RFC 2251:
maxInt INTEGER ::= 2147483647 -- (2^^31 - 1) --
*/
sizelimit
=
2147483647
;
}
else
{
ival
=
strtol
(
optarg
,
&
next
,
10
);
if
(
next
==
NULL
||
next
[
0
]
!=
'\0'
)
{
...
...
This diff is collapsed.
Click to expand it.
doc/man/man1/ldapsearch.1
+
6
−
0
View file @
671e3c76
...
...
@@ -227,6 +227,9 @@ A timelimit of
(zero) or
.I none
means no limit.
A timelimit of
.I max
means the maximum integer allowable by the protocol.
A server may impose a maximal timelimit which only
the root user may override.
.TP
...
...
@@ -237,6 +240,9 @@ A sizelimit of
(zero) or
.I none
means no limit.
A sizelimit of
.I max
means the maximum integer allowable by the protocol.
A server may impose a maximal sizelimit which only
the root user may override.
.TP
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment