Skip to content
Snippets Groups Projects
Commit 9b3a3d5f authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

improve tool mode selection by slapd switch

parent 35329394
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ slapd \- Stand-alone LDAP Daemon
.SH SYNOPSIS
.B LIBEXECDIR/slapd
.B [\-[4|6]]
.B [\-T {a|c|d|i|p|t}]
.B [\-T {add|auth|cat|dn|index|passwd|test}]
.B [\-d debug\-level]
.B [\-f slapd\-config\-file]
.B [\-h URLs]
......
......@@ -133,7 +133,8 @@ usage( char *name )
fprintf( stderr,
"\t-4\t\tIPv4 only\n"
"\t-6\t\tIPv6 only\n"
"\t-T {acdipt}\tRun in Tool mode\n"
"\t-T {add|auth|cat|dn|index|passwd|test}\n"
"\t\t\tRun in Tool mode\n"
"\t-c cookie\tSync cookie of consumer\n"
"\t-d level\tDebug level" "\n"
"\t-f filename\tConfiguration file\n"
......@@ -387,7 +388,7 @@ int main( int argc, char **argv )
case 'T':
for (i=0; tools[i].name; i++) {
if ( optarg[0] == tools[i].name[4] ) {
if ( strcmp( optarg, &tools[i].name[4] ) == 0 ) {
rc = tools[i].func(argc, argv);
MAIN_RETURN(rc);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment