%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,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,pcntl_unshare,mail,php_uname,phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/pap/ |
Upload File : |
do 'pap-lib.pl'; # useradmin_create_user(&details) # Add a PAP user if syncing is enabled sub useradmin_create_user { return if (!$config{'sync_add'}); @sec = &list_secrets(); foreach $s (@sec) { return if ($s->{'client'} eq $_[0]->{'user'}); } $sec{'client'} = $_[0]->{'user'}; $sec{'server'} = $config{'sync_server'} ? $config{'sync_server'} : "*"; &compute_password($_[0], \%sec); $sec{'ips'} = [ ]; &create_secret(\%sec); } # useradmin_delete_user(&details) # Delete this pap user if syncing sub useradmin_delete_user { return if (!$config{'sync_delete'}); @sec = &list_secrets(); for($i=0; $i<@sec; $i++) { if ($sec[$i]->{'client'} eq $_[0]->{'user'}) { &delete_secret($sec[$i]); return; } } } # useradmin_modify_user(&details) # Update this user if in sync sub useradmin_modify_user { return if (!$config{'sync_change'}); @sec = &list_secrets(); for($i=0; $i<@sec; $i++) { if ($sec[$i]->{'client'} eq $_[0]->{'olduser'}) { $sec[$i]->{'client'} = $_[0]->{'user'}; &compute_password($_[0], $sec[$i]); &change_secret($sec[$i]); return; } } } # compute_password(&user, &secret) sub compute_password { if ($_[0]->{'passmode'} == 0) { $_[1]->{'secret'} = &opt_crypt(""); } elsif ($_[0]->{'passmode'} == 1) { $_[1]->{'secret'} = "*LK*"; } elsif ($_[0]->{'passmode'} == 2) { $_[1]->{'secret'} = $_[0]->{'pass'} if ($config{'encrypt_pass'}); } elsif ($_[0]->{'passmode'} == 3) { $_[1]->{'secret'} = &opt_crypt($_[0]->{'plainpass'}); } } 1;