break;
case SLAPAUTH:
- options = "\t[-U authcID] [-X authzID] ID [...]\n";
+ options = "\t[-U authcID] [-X authzID] [-R realm] [-M mech] ID [...]\n";
break;
case SLAPACL:
options = "\t[-U authcID | -D authcDN]"
- " -b DN attr[/level][:value] [...]\n";
+ " -b DN [attr[/access][:value]] [...]\n";
break;
}
free( leakfilename );
#endif
- config_init(); /* sets frontendDB */
-
switch( tool ) {
case SLAPADD:
options = "b:cd:f:i:l:n:prtuvWw";
break;
case SLAPAUTH:
- options = "d:f:U:vX:";
+ options = "d:f:M:R:U:vX:";
mode |= SLAP_TOOL_READMAIN | SLAP_TOOL_READONLY;
break;
retrieve_ctxcsn = 1;
break;
+ case 'M':
+ ber_str2bv( optarg, 0, 0, &mech );
+ break;
+
case 'n': /* which config file db to index */
dbnum = atoi( optarg ) - 1;
break;
replica_demotion = 1;
break;
+ case 'R':
+ realm = optarg;
+ break;
+
case 's': /* dump subtree */
subtree = strdup( optarg );
break;
break;
case SLAPACL:
- if ( argc == optind ) {
- usage( tool, progname );
- }
if ( !BER_BVISNULL( &authcDN ) && !BER_BVISNULL( &authcID ) ) {
usage( tool, progname );
}
break;
}
- rc = glue_sub_init();
-
- if ( rc != 0 ) {
- fprintf( stderr, "Subordinate configuration error\n" );
- exit( EXIT_FAILURE );
- }
-
rc = slap_schema_check();
if ( rc != 0 ) {