Server IP : 195.201.23.43 / Your IP : 18.191.239.71 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/samba/ |
Upload File : |
#!/usr/bin/perl # conf_pass.cgi # Display password options options require './samba-lib.pl'; # check acls &error_setup("$text{'eacl_aviol'}ask_epass.cgi"); &error("$text{'eacl_np'} $text{'eacl_pcp'}") unless $access{'conf_pass'}; &ui_print_header(undef, $text{'passwd_title'}, ""); &get_share("global"); print &ui_form_start("save_pass.cgi", "post"); print &ui_table_start($text{'passwd_title'}, undef, 2); print &ui_table_row($text{'passwd_encrypt'}, &yesno_input("encrypt passwords")); print &ui_table_row($text{'passwd_allownull'}, &yesno_input("null passwords")); print &ui_table_row($text{'passwd_program'}, &ui_opt_textbox("passwd_program", &getval("passwd program"), 25, $text{'default'})); print &ui_table_row($text{'passwd_sync'}, &yesno_input("unix password sync")); $pc = &getval("passwd chat"); $chat = &ui_radio("passwd_chat_def", $pc eq "" ? 1 : 0, [ [ 1, $text{'default'} ], [ 0, $text{'passwd_below'} ] ])."<br>\n"; $chat .= &ui_columns_start([ $text{'passwd_waitfor'}, $text{'passwd_send'} ]); while($pc =~ /^"([^"]*)"\s*(.*)/ || $pc =~ /^(\S+)\s*(.*)/) { if ($send) { push(@send, $1); $send = 0; } else { push(@recv, $1); $send = 1; } $pc = $2; } for($i=0; $i<(@recv < 5 ? 5 : @recv+1); $i++) { $chat .= &ui_columns_row([ &ui_textbox("chat_recv_$i", $recv[$i] eq "." ? "" : $recv[$i], 20), &ui_textbox("chat_send_$i", $send[$i], 20), ]); } $chat .= &ui_columns_end(); print &ui_table_row($text{'passwd_chat'}, $chat); $map = &ui_radio("username_map_def", &getval("username map") eq "" ? 1 : 0, [ [ 1, $text{'config_none'} ], [ 0, $text{'passwd_below'} ] ])."<br>\n"; $map .= &ui_columns_start([ $text{'passwd_unixuser'}, $text{'passwd_winuser'} ]); open(UMAP, "<".&getval("username map")); while(<UMAP>) { s/\r|\n//g; s/[#;].*$//g; if (/^\s*(\S+)\s*=\s*(.*)$/) { local $uunix = $1; local $rest = $2; while($rest =~ /^\s*"([^"]*)"(.*)$/ || $rest =~ /^\s*(\S+)(.*)$/) { push(@uunix, $uunix); push(@uwin, $1); $rest = $2; } } } close(UMAP); for($i=0; $i<@uunix+1; $i++) { $map .= &ui_columns_row([ &ui_textbox("umap_unix_$i", $uunix[$i], 15), &ui_textbox("umap_win_$i", $uwin[$i], 30), ]); } $map .= &ui_columns_end(); print &ui_table_row($text{'passwd_map'}, $map); print &ui_table_end(); print &ui_form_end([ [ undef, $text{'save'} ] ]); &ui_print_footer("", $text{'index_sharelist'});Private