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 );
}
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 );
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;
-.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.
.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
.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