mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Enable prompting of paged results with /prompt or /noprompt rather than /true or /false
This commit is contained in:
parent
b480d7c9ff
commit
760c8506a6
@ -108,7 +108,7 @@ usage( void )
|
|||||||
#endif
|
#endif
|
||||||
fprintf( stderr, _(" [!]mv=<filter> (matched values filter)\n"));
|
fprintf( stderr, _(" [!]mv=<filter> (matched values filter)\n"));
|
||||||
#ifdef LDAP_CONTROL_PAGEDRESULTS
|
#ifdef LDAP_CONTROL_PAGEDRESULTS
|
||||||
fprintf( stderr, _(" [!]pr=<size>[/true|false] (paged results/prompt)\n"));
|
fprintf( stderr, _(" [!]pr=<size>[/prompt|noprompt] (paged results/prompt)\n"));
|
||||||
#endif
|
#endif
|
||||||
#ifdef LDAP_CONTROL_SUBENTRIES
|
#ifdef LDAP_CONTROL_SUBENTRIES
|
||||||
fprintf( stderr, _(" [!]subentries[=true|false] (subentries)\n"));
|
fprintf( stderr, _(" [!]subentries[=true|false] (subentries)\n"));
|
||||||
@ -310,9 +310,9 @@ handle_private_option( int i )
|
|||||||
promptp = strchr( cvalue, '/' );
|
promptp = strchr( cvalue, '/' );
|
||||||
if ( promptp != NULL ) {
|
if ( promptp != NULL ) {
|
||||||
*promptp++ = '\0';
|
*promptp++ = '\0';
|
||||||
if ( strcasecmp( promptp, "true" ) == 0 ) {
|
if ( strcasecmp( promptp, "prompt" ) == 0 ) {
|
||||||
pagePrompt = 1;
|
pagePrompt = 1;
|
||||||
} else if ( strcasecmp( promptp, "false" ) == 0) {
|
} else if ( strcasecmp( promptp, "noprompt" ) == 0) {
|
||||||
pagePrompt = 0;
|
pagePrompt = 0;
|
||||||
} else {
|
} else {
|
||||||
fprintf( stderr, _("Invalid value for PagedResultsControl, %s/%s.\n"), cvalue, promptp);
|
fprintf( stderr, _("Invalid value for PagedResultsControl, %s/%s.\n"), cvalue, promptp);
|
||||||
|
Loading…
Reference in New Issue
Block a user