Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Christopher Ng
OpenLDAP
Commits
c243a6fa
Commit
c243a6fa
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
ITS#657: Added command-line switch for searchbase to in.xfingerd
ITS#658: man page from Tom Jordan <tjordan@doit.wisc.edu>
parent
df8c837c
No related branches found
Branches containing commit
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/finger/main.c
+6
-2
6 additions, 2 deletions
clients/finger/main.c
doc/man/man8/in.xfingerd.8
+5
-2
5 additions, 2 deletions
doc/man/man8/in.xfingerd.8
with
11 additions
and
4 deletions
clients/finger/main.c
+
6
−
2
View file @
c243a6fa
...
...
@@ -52,7 +52,7 @@ static void do_read(LDAP *ld, LDAPMessage *e);
static
void
usage
(
char
*
name
)
{
fprintf
(
stderr
,
"usage: %s [-l] [-x ldaphost] [-p ldapport] [-f filterfile] [-t templatefile] [-c rdncount]
\r\n
"
,
name
);
fprintf
(
stderr
,
"usage: %s [-l] [-x ldaphost] [-p ldapport]
[-b searchbase]
[-f filterfile] [-t templatefile] [-c rdncount]
\r\n
"
,
name
);
exit
(
EXIT_FAILURE
);
}
...
...
@@ -67,7 +67,7 @@ main( int argc, char **argv )
int
interactive
=
0
;
deref
=
FINGER_DEREF
;
while
(
(
i
=
getopt
(
argc
,
argv
,
"f:ilp:t:x:p:c:"
))
!=
EOF
)
{
while
(
(
i
=
getopt
(
argc
,
argv
,
"f:ilp:t:x:p:
b:
c:"
))
!=
EOF
)
{
switch
(
i
)
{
case
'f'
:
/* ldap filter file */
filterfile
=
strdup
(
optarg
);
...
...
@@ -93,6 +93,10 @@ main( int argc, char **argv )
ldapport
=
atoi
(
optarg
);
break
;
case
'b'
:
/* specify search base */
base
=
strdup
(
optarg
);
break
;
case
'c'
:
/* specify number of DN components to show */
rdncount
=
atoi
(
optarg
);
break
;
...
...
This diff is collapsed.
Click to expand it.
doc/man/man8/in.xfingerd.8
+
5
−
2
View file @
c243a6fa
.TH IN.XFINGERD 8C "
22 September 1998
" "OpenLDAP LDVERSION"
.TH IN.XFINGERD 8C "
16 August 200
" "OpenLDAP LDVERSION"
.\" $OpenLDAP$
.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
...
...
@@ -7,7 +7,7 @@ in.xfingerd \- Finger to LDAP/X.500 gateway daemon
.SH SYNOPSIS
.B LIBEXECDIR/in.xfingerd [\-f filterfile] [\-i]
.B [\-l] [\-t templatefile] [\-c rdncount] [\-x hostname]
.B [\-p port]
.B
[\-b searchbase]
[\-p port]
.SH DESCRIPTION
.B in.xfingerd
is the LDAP/X.500 finger daemon. It runs from
...
...
@@ -66,6 +66,9 @@ Specify an alternate host on which the ldap server is running.
.TP
.BI \-p " port"
Specify an alternate port on which the ldap server is listening.
.TP
.BI \-b " searchbase"
Specify an alternate search base for queries.
.SH NOTES
The default values for most of the things you can specify with
options are configured at compile time in the
...
...
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