#!/usr/local/bin/perl # edit_sync.cgi # Allow the user to edit auto updating of Samba accounts by useradmin require './samba-lib.pl'; # check acls &error_setup("$text{'eacl_aviol'}"); &error("$text{'eacl_np'} $text{'eacl_pmsync'}") unless $access{'maint_sync'}; # display &ui_print_header(undef, $text{'esync_title'}, ""); &check_user_enabled($text{'esync_cannot'}); print $text{'esync_msg'}, "

\n"; print "

\n"; printf "\n", $config{'sync_add'} ? "checked" : ""; print "$text{'esync_add'}

\n"; printf "\n", $config{'sync_change'} ? "checked" : ""; print "$text{'esync_chg'}

\n"; printf "\n", $config{'sync_delete'} ? "checked" : ""; print "$text{'esync_del'}

\n"; printf "\n", $config{'sync_delete_profile'} ? "checked" : ""; print "$text{'esync_del_profile'}

\n"; printf "\n", $config{'sync_change_profile'} ? "checked" : ""; print "$text{'esync_chg_profile'}

\n"; print "$text{'esync_gid'}\n", &ui_opt_textbox("gid", $config{'sync_gid'}, 10, $text{'default'}),"

\n"; print "

\n"; &ui_print_footer("", $text{'index_sharelist'});