From: Kurt Zeilenga Date: Wed, 16 Aug 2000 20:27:17 +0000 (+0000) Subject: ITS#657: Added command-line switch for searchbase to in.xfingerd X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2245 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c243a6fa92476721f94a21c470298565525405ec;p=openldap ITS#657: Added command-line switch for searchbase to in.xfingerd ITS#658: man page from Tom Jordan --- diff --git a/clients/finger/main.c b/clients/finger/main.c index 5e8111633e..bc02da053a 100644 --- a/clients/finger/main.c +++ b/clients/finger/main.c @@ -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; diff --git a/doc/man/man8/in.xfingerd.8 b/doc/man/man8/in.xfingerd.8 index 5f65271896..0baa476b94 100644 --- a/doc/man/man8/in.xfingerd.8 +++ b/doc/man/man8/in.xfingerd.8 @@ -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