3 # Allow the user to edit auto updating of Samba accounts by useradmin
5 require './samba-lib.pl';
8 &error_setup("<blink><font color=red>$text{'eacl_aviol'}</font></blink>");
9 &error("$text{'eacl_np'} $text{'eacl_pmsync'}")
10 unless $access{'maint_sync'};
12 &ui_print_header(undef, $text{'esync_title'}, "");
14 &check_user_enabled($text{'esync_cannot'});
16 print $text{'esync_msg'}, "<p>\n";
18 print "<form action=save_sync.cgi>\n";
19 printf "<input type=checkbox name=add value=1 %s>\n",
20 $config{'sync_add'} ? "checked" : "";
21 print "$text{'esync_add'}<p>\n";
23 printf "<input type=checkbox name=change value=1 %s>\n",
24 $config{'sync_change'} ? "checked" : "";
25 print "$text{'esync_chg'}<p>\n";
27 printf "<input type=checkbox name=delete value=1 %s>\n",
28 $config{'sync_delete'} ? "checked" : "";
29 print "$text{'esync_del'}<p>\n";
31 printf "<input type=checkbox name=delete_profile value=1 %s>\n",
32 $config{'sync_delete_profile'} ? "checked" : "";
33 print "$text{'esync_del_profile'}<p>\n";
35 printf "<input type=checkbox name=change_profile value=1 %s>\n",
36 $config{'sync_change_profile'} ? "checked" : "";
37 print "$text{'esync_chg_profile'}<p>\n";
39 print "$text{'esync_gid'}\n",
40 &ui_opt_textbox("gid", $config{'sync_gid'}, 10, $text{'default'}),"<p>\n";
42 print "<input type=submit value=\"", $text{'esync_apply'}, "\"></form>\n";
44 &ui_print_footer("", $text{'index_sharelist'});