From: Luke Howard Date: Mon, 1 Mar 2004 09:13:36 +0000 (+0000) Subject: Enable prompting of paged results with /prompt or /noprompt rather than /true or... X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~389 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=760c8506a6eead763939a444f7698191ef9ac28f;p=openldap Enable prompting of paged results with /prompt or /noprompt rather than /true or /false --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 1ddcddf82c..4a7cc64671 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -108,7 +108,7 @@ usage( void ) #endif fprintf( stderr, _(" [!]mv= (matched values filter)\n")); #ifdef LDAP_CONTROL_PAGEDRESULTS - fprintf( stderr, _(" [!]pr=[/true|false] (paged results/prompt)\n")); + fprintf( stderr, _(" [!]pr=[/prompt|noprompt] (paged results/prompt)\n")); #endif #ifdef LDAP_CONTROL_SUBENTRIES fprintf( stderr, _(" [!]subentries[=true|false] (subentries)\n")); @@ -310,9 +310,9 @@ handle_private_option( int i ) promptp = strchr( cvalue, '/' ); if ( promptp != NULL ) { *promptp++ = '\0'; - if ( strcasecmp( promptp, "true" ) == 0 ) { + if ( strcasecmp( promptp, "prompt" ) == 0 ) { pagePrompt = 1; - } else if ( strcasecmp( promptp, "false" ) == 0) { + } else if ( strcasecmp( promptp, "noprompt" ) == 0) { pagePrompt = 0; } else { fprintf( stderr, _("Invalid value for PagedResultsControl, %s/%s.\n"), cvalue, promptp);