mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#657: Added command-line switch for searchbase to in.xfingerd
ITS#658: man page from Tom Jordan <tjordan@doit.wisc.edu>
This commit is contained in:
parent
df8c837c80
commit
c243a6fa92
@ -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;
|
||||
|
@ -1,4 +1,4 @@
|
||||
.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
|
||||
|
Loading…
Reference in New Issue
Block a user