1 /* config.c - shell backend configuration file routine */
22 struct shellinfo *si = (struct shellinfo *) be->be_private;
25 fprintf( stderr, "%s: line %d: shell backend info is null!\n",
30 /* command + args to exec for binds */
31 if ( strcasecmp( argv[0], "bind" ) == 0 ) {
34 "%s: line %d: missing executable in \"bind <executable>\" line\n",
38 si->si_bind = charray_dup( &argv[1] );
40 /* command + args to exec for unbinds */
41 } else if ( strcasecmp( argv[0], "unbind" ) == 0 ) {
44 "%s: line %d: missing executable in \"unbind <executable>\" line\n",
48 si->si_unbind = charray_dup( &argv[1] );
50 /* command + args to exec for searches */
51 } else if ( strcasecmp( argv[0], "search" ) == 0 ) {
54 "%s: line %d: missing executable in \"search <executable>\" line\n",
58 si->si_search = charray_dup( &argv[1] );
60 /* command + args to exec for compares */
61 } else if ( strcasecmp( argv[0], "compare" ) == 0 ) {
64 "%s: line %d: missing executable in \"compare <executable>\" line\n",
68 si->si_compare = charray_dup( &argv[1] );
70 /* command + args to exec for modifies */
71 } else if ( strcasecmp( argv[0], "modify" ) == 0 ) {
74 "%s: line %d: missing executable in \"modify <executable>\" line\n",
78 si->si_modify = charray_dup( &argv[1] );
80 /* command + args to exec for modrdn */
81 } else if ( strcasecmp( argv[0], "modrdn" ) == 0 ) {
84 "%s: line %d: missing executable in \"modrdn <executable>\" line\n",
88 si->si_modrdn = charray_dup( &argv[1] );
90 /* command + args to exec for add */
91 } else if ( strcasecmp( argv[0], "add" ) == 0 ) {
94 "%s: line %d: missing executable in \"add <executable>\" line\n",
98 si->si_add = charray_dup( &argv[1] );
100 /* command + args to exec for delete */
101 } else if ( strcasecmp( argv[0], "delete" ) == 0 ) {
104 "%s: line %d: missing executable in \"delete <executable>\" line\n",
108 si->si_delete = charray_dup( &argv[1] );
110 /* command + args to exec for abandon */
111 } else if ( strcasecmp( argv[0], "abandon" ) == 0 ) {
114 "%s: line %d: missing executable in \"abandon <executable>\" line\n",
118 si->si_abandon = charray_dup( &argv[1] );
123 "%s: line %d: unknown directive \"%s\" in shell database definition (ignored)\n",
124 fname, lineno, argv[0] );