if ( strcasecmp( control, "authzid" ) == 0 ) {
if( authzid != NULL ) {
- fprintf( stderr, "authzid control previously specified");
+ fprintf( stderr, "authzid control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue == NULL ) {
- fprintf( stderr, "authzid: control value expected" );
+ fprintf( stderr, "authzid: control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if( !crit ) {
- fprintf( stderr, "authzid: must be marked critical" );
+ fprintf( stderr, "authzid: must be marked critical\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
if( manageDSAit ) {
- fprintf( stderr, "manageDSAit control previously specified");
+ fprintf( stderr, "manageDSAit control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "manageDSAit: no control value expected" );
+ fprintf( stderr, "manageDSAit: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "noop" ) == 0 ) {
if( noop ) {
- fprintf( stderr, "noop control previously specified");
+ fprintf( stderr, "noop control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "noop: no control value expected" );
+ fprintf( stderr, "noop: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if ( strcasecmp( control, "authzid" ) == 0 ) {
if( authzid != NULL ) {
- fprintf( stderr, "authzid control previously specified");
+ fprintf( stderr, "authzid control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue == NULL ) {
- fprintf( stderr, "authzid: control value expected" );
+ fprintf( stderr, "authzid: control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if( !crit ) {
- fprintf( stderr, "authzid: must be marked critical" );
+ fprintf( stderr, "authzid: must be marked critical\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
if( manageDSAit ) {
- fprintf( stderr, "manageDSAit control previously specified");
+ fprintf( stderr, "manageDSAit control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "manageDSAit: no control value expected" );
+ fprintf( stderr, "manageDSAit: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "noop" ) == 0 ) {
if( noop ) {
- fprintf( stderr, "noop control previously specified");
+ fprintf( stderr, "noop control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "noop: no control value expected" );
+ fprintf( stderr, "noop: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if ( strcasecmp( control, "authzid" ) == 0 ) {
if( authzid != NULL ) {
- fprintf( stderr, "authzid control previously specified");
+ fprintf( stderr, "authzid control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue == NULL ) {
- fprintf( stderr, "authzid: control value expected" );
+ fprintf( stderr, "authzid: control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if( !crit ) {
- fprintf( stderr, "authzid: must be marked critical" );
+ fprintf( stderr, "authzid: must be marked critical\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
if( manageDSAit ) {
- fprintf( stderr, "manageDSAit control previously specified");
+ fprintf( stderr, "manageDSAit control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "manageDSAit: no control value expected" );
+ fprintf( stderr, "manageDSAit: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "noop" ) == 0 ) {
if( noop ) {
- fprintf( stderr, "noop control previously specified");
+ fprintf( stderr, "noop control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "noop: no control value expected" );
+ fprintf( stderr, "noop: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if ( strcasecmp( control, "authzid" ) == 0 ) {
if( authzid != NULL ) {
- fprintf( stderr, "authzid control previously specified");
+ fprintf( stderr, "authzid control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue == NULL ) {
- fprintf( stderr, "authzid: control value expected" );
+ fprintf( stderr, "authzid: control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if( !crit ) {
- fprintf( stderr, "authzid: must be marked critical" );
+ fprintf( stderr, "authzid: must be marked critical\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
if( manageDSAit ) {
- fprintf( stderr, "manageDSAit control previously specified");
+ fprintf( stderr, "manageDSAit control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "manageDSAit: no control value expected" );
+ fprintf( stderr, "manageDSAit: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "noop" ) == 0 ) {
if( noop ) {
- fprintf( stderr, "noop control previously specified");
+ fprintf( stderr, "noop control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "noop: no control value expected" );
+ fprintf( stderr, "noop: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if ( strcasecmp( control, "authzid" ) == 0 ) {
if( authzid != NULL ) {
- fprintf( stderr, "authzid control previously specified");
+ fprintf( stderr, "authzid control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue == NULL ) {
- fprintf( stderr, "authzid: control value expected" );
+ fprintf( stderr, "authzid: control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if( !crit ) {
- fprintf( stderr, "authzid: must be marked critical" );
+ fprintf( stderr, "authzid: must be marked critical\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
if( manageDSAit ) {
- fprintf( stderr, "manageDSAit control previously specified");
+ fprintf( stderr, "manageDSAit control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "manageDSAit: no control value expected" );
+ fprintf( stderr, "manageDSAit: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "noop" ) == 0 ) {
if( cvalue != NULL ) {
- fprintf( stderr, "noop: no control value expected" );
+ fprintf( stderr, "noop: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if ( strcasecmp( control, "mv" ) == 0 ) {
/* ValuesReturnFilter control */
if( valuesReturnFilter ) {
- fprintf( stderr, "ValuesReturnFilter previously specified");
+ fprintf( stderr, "ValuesReturnFilter previously specified\n");
return EXIT_FAILURE;
}
valuesReturnFilter= 1 + crit;
int num, tmp;
/* PagedResults control */
if ( pagedResults != 0 ) {
- fprintf( stderr, "PagedResultsControl previously specified" );
+ fprintf( stderr, "PagedResultsControl previously specified\n" );
return EXIT_FAILURE;
}
#ifdef LDAP_CONTROL_SUBENTRIES
} else if ( strcasecmp( control, "subentries" ) == 0 ) {
if( subentries ) {
- fprintf( stderr, "subentries control previously specified");
+ fprintf( stderr, "subentries control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue == NULL || strcasecmp( cvalue, "true") == 0 ) {
if ( strcasecmp( control, "authzid" ) == 0 ) {
if( authzid != NULL ) {
- fprintf( stderr, "authzid control previously specified");
+ fprintf( stderr, "authzid control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue == NULL ) {
- fprintf( stderr, "authzid: control value expected" );
+ fprintf( stderr, "authzid: control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
if( !crit ) {
- fprintf( stderr, "authzid: must be marked critical" );
+ fprintf( stderr, "authzid: must be marked critical\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
if( manageDSAit ) {
- fprintf( stderr, "manageDSAit control previously specified");
+ fprintf( stderr, "manageDSAit control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "manageDSAit: no control value expected" );
+ fprintf( stderr, "manageDSAit: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}
} else if ( strcasecmp( control, "noop" ) == 0 ) {
if( noop ) {
- fprintf( stderr, "noop control previously specified");
+ fprintf( stderr, "noop control previously specified\n");
return EXIT_FAILURE;
}
if( cvalue != NULL ) {
- fprintf( stderr, "noop: no control value expected" );
+ fprintf( stderr, "noop: no control value expected\n" );
usage(prog);
return EXIT_FAILURE;
}