2 # Show services in nsswitch.conf, with links to edit them
4 if (-r 'ldap-client-lib.pl') {
5 require './ldap-client-lib.pl';
8 require './nis-lib.pl';
10 require './switch-lib.pl';
11 &ui_print_header(undef, $text{'switch_title'}, "",
12 $module_name eq "nis" ? undef : "switch");
14 print &ui_columns_start([ $text{'switch_service'},
15 $text{'switch_srcs'} ], undef, 0,
16 [ "nowrap", "nowrap" ]);
17 $conf = &get_nsswitch_config();
19 $srcs = join(", ", map { $text{'order_'.$_->{'src'}} } @{$s->{'srcs'}});
20 $name = $text{'desc_'.$s->{'name'}} || $s->{'name'};
21 print &ui_columns_row([
22 "<a href='edit_switch.cgi?name=$s->{'name'}'>$name</a>",
26 print &ui_columns_end();
28 &ui_print_footer("", $text{'index_return'});