Compare commits

...

601 Commits
2.000 ... 2.013

Author SHA1 Message Date
Jamie Cameron
316ff18969 New version bumps 2023-01-19 18:05:24 -08:00
iliajie
0214ea71c7 Update CHANGELOG.md 2023-01-20 02:57:41 +02:00
Jamie Cameron
06df6994b2 Merge pull request #1823 from webmin/dev/fix-search-in-menu
Fix search bar in navigation menu (Webmin)
2023-01-19 16:55:21 -08:00
iliajie
e0f6251b77 Fix to allow smaller size for potentially smaller menu 2023-01-20 02:16:40 +02:00
iliajie
c473443ac0 Fix search bar in navigation menu (Webmin) 2023-01-20 02:11:37 +02:00
iliajie
4c086815d2 Fix to revert test drive for a new .bashrc 2023-01-20 02:00:38 +02:00
iliajie
65c5f42c94 Fix Framed theme to respect mode on left menu 2023-01-20 01:31:11 +02:00
Jamie Cameron
ee21f22e56 remove debug print 2023-01-19 15:27:36 -08:00
Jamie Cameron
5d9643e36d Merge branch 'master' of github.com:webmin/webmin 2023-01-19 15:23:11 -08:00
Jamie Cameron
cecb8ed96d Fix defaulting to webmin mode 2023-01-19 15:22:31 -08:00
iliajie
4903099544 Update CHANGELOG.md 2023-01-19 20:47:55 +02:00
iliajie
d333f1fe16 Update CHANGELOG.md (2.012) 2023-01-19 01:39:18 +02:00
iliajie
286c5c6c51 Fix to revert incorrect fix beed9af645 (commitcomment-97277268) 2023-01-19 01:10:05 +02:00
Jamie Cameron
06d212ddfc New version bump 2023-01-18 14:24:39 -08:00
Jamie Cameron
35a259eabc Merge branch 'master' of github.com:webmin/webmin 2023-01-18 13:38:33 -08:00
Jamie Cameron
40bf45ae42 Fix variable name 2023-01-18 13:38:28 -08:00
iliajie
a875b8e7eb Fix a bug in routing_config_files sub 2023-01-18 23:37:31 +02:00
iliajie
faa7b57970 Fix to remove ignore errors 2023-01-18 21:57:52 +02:00
Jamie Cameron
7bf010f9f8 Make sure domains are unique 2023-01-17 22:21:10 -08:00
Jamie Cameron
8ced702aa1 Support Debian 12 2023-01-17 20:29:49 -08:00
Jamie Cameron
ed042f3a53 Include all debian config files in backups 2023-01-17 20:10:46 -08:00
iliajie
67a0eca90c Fix not to enable warnings blindly on all code 2023-01-17 16:22:55 +02:00
iliajie
ff5119da7c Add support for defining hostname for WebSocket connection
https://forum.virtualmin.com/t/using-new-command-line-not-working-behind-reverse-proxy/118673/2
2023-01-17 16:09:46 +02:00
Jamie Cameron
4bf1a38288 Merge branch 'master' of github.com:webmin/webmin 2023-01-16 18:38:56 -08:00
Jamie Cameron
eee5331b28 Use correct args to modify_interface_def https://github.com/webmin/webmin/issues/1818 2023-01-16 18:38:20 -08:00
iliajie
beed9af645 Fix to make sure that interface file is read only once 2023-01-16 22:42:43 +02:00
iliajie
087f1e7776 Fix to stop reading file on error 2023-01-16 22:07:00 +02:00
Jamie Cameron
c80eb8b6ae Limit files in source-directory to same pattern debian uses 2023-01-16 11:01:20 -08:00
Jamie Cameron
e43fbfdaa5 Stop doing expensive package re-fetch on upgrade https://forum.virtualmin.com/t/updates-webmin-virtualmin-hangs-for-a-long-time/118662 2023-01-16 10:56:12 -08:00
Jamie Cameron
55553c43a1 Merge branch 'master' of github.com:webmin/webmin 2023-01-16 10:54:03 -08:00
Jamie Cameron
a035e2f6c5 Allow postinstall scripts to know when webmin is being upgraded 2023-01-16 10:53:54 -08:00
iliajie
cee528f46c Fix missing module reference as requesting Let's Encrypt certificate 2023-01-16 20:51:44 +02:00
Jamie Cameron
2406f19084 Everything is really on webmin.com 2023-01-16 10:38:58 -08:00
Jamie Cameron
3bdc75bb15 Track files already included to avoid include loops 2023-01-15 16:48:56 -08:00
Jamie Cameron
4fcb99b89a source-directory may refer to a directory, not a pattern 2023-01-15 16:45:02 -08:00
iliajie
335136be14 Fix the loop bug when sourcing other configs ; remove stderr print 2023-01-16 00:22:22 +02:00
iliajie
e88ae050a9 Fix to remove unnecessary copyright from the header 2023-01-12 20:36:38 +02:00
Jamie Cameron
43bf4bbc15 Set the correct algorithm when setting up rndc https://github.com/webmin/webmin/issues/1817 2023-01-11 19:08:06 -08:00
Jamie Cameron
6451f4b115 Store and show default TTL set by $ttl https://github.com/webmin/webmin/issues/1816 2023-01-10 22:23:36 -08:00
iliajie
f6b8cc6302 Update CHANGELOG.md (2.011) 2023-01-10 18:11:43 +02:00
Jamie Cameron
f2209fb633 Also respect epoch when checking version 2023-01-09 23:46:20 -08:00
Jamie Cameron
1879848d11 Remove spacer 2023-01-09 23:29:44 -08:00
Jamie Cameron
aaf7b9f24b Changelog for new version 2023-01-09 21:46:50 -08:00
Jamie Cameron
451a7e2e6a New version bump 2023-01-09 21:41:20 -08:00
iliajie
509141f5d5 Fix mailbox_idle_check_interval bugs
https://sourceforge.net/p/webadmin/bugs/5602/
2023-01-09 18:27:57 +02:00
iliajie
52c06534db Fix to drop remove mailbox_check_interval option 2023-01-09 18:23:06 +02:00
iliajie
29ef2d5f33 Fix to keep original copyright year 2023-01-09 00:36:20 +02:00
Jamie Cameron
1febfdbe0f Add option to insert a new map entry before an existing one 2023-01-08 12:45:25 -08:00
Jamie Cameron
277f67dac9 Fix line length 2023-01-07 22:07:27 -08:00
Jamie Cameron
d199de8469 Add a param to create a new block before an existing one 2023-01-07 22:07:01 -08:00
iliajie
1f7753db43 Update copyright year in webmin sub-commands 2023-01-08 04:20:37 +02:00
iliajie
c02b2cdbea Update copyright year in webmin command 2023-01-08 04:16:38 +02:00
iliajie
8fabb28e7a Fix to start with one for each type as adding now works 2023-01-08 01:48:15 +02:00
iliajie
4117119c44 Fix to support multiple attr 2023-01-08 01:41:45 +02:00
iliajie
2584bc05cf Merge remote-tracking branch 'origin/master' 2023-01-08 00:48:07 +02:00
iliajie
72ecf54a17 Fix JavaScript id ref bug 2023-01-08 00:47:53 +02:00
Jamie Cameron
a0f2527ed0 Merge branch 'master' of github.com:webmin/webmin 2023-01-07 12:57:33 -08:00
Jamie Cameron
343307f703 localhost isn't a valid hostname 2023-01-07 12:57:09 -08:00
iliajie
d4f541015d Fix to drop useless code 2023-01-07 21:48:55 +02:00
iliajie
e92763e3d7 Fix to refer to direct child 2023-01-07 21:24:46 +02:00
iliajie
b0eb96d003 Fix to prevent forcing using tables in tabs (fix widths) 2023-01-07 20:58:44 +02:00
iliajie
5c26bf4de3 Fix to prevent forcing using tables in tabs 2023-01-07 19:59:10 +02:00
iliajie
374e5bf07c Fix to print strong instad of b which is used for header generation 2023-01-05 23:07:16 +02:00
Jamie Cameron
ca814a4e6f If we get an ERROR output when executing an SQL file, consider it failed even if the exit status is zero 2023-01-03 18:25:50 -08:00
Jamie Cameron
9b2fc2c9f4 When moving a maildir, also move any Maildir++ sub-folders 2023-01-02 18:26:14 -08:00
Jamie Cameron
ca6acb4a8c Don't error out if deleting an LDAP object that's already been deleted 2022-12-29 21:23:46 -08:00
Jamie Cameron
4dd017dce4 Merge branch 'master' of github.com:webmin/webmin 2022-12-28 21:57:38 -08:00
Jamie Cameron
562eb544e5 Don't fail user or group deletion if they have already been deleted https://github.com/virtualmin/virtualmin-gpl/issues/493 2022-12-28 21:37:45 -08:00
iliajie
65668c084f Merge remote-tracking branch 'origin/master' 2022-12-28 21:06:51 +02:00
iliajie
111aa65b8f Fix to update to the latest Xterm.js 5.1.0 2022-12-28 21:06:20 +02:00
Jamie Cameron
52926dcb65 Merge branch 'master' of github.com:webmin/webmin 2022-12-26 18:26:09 -08:00
Jamie Cameron
9fa99120ef Add support for resolve_dequoted_address 2022-12-26 18:26:01 -08:00
Jamie Cameron
ab94e020e0 Merge pull request #1812 from webmin/dev/fix-anonimous-user-test
Fix to test if anonymous user actually exists
2022-12-26 17:50:45 -08:00
iliajie
29354389f4 Fix to test if anonymous user actually exists 2022-12-26 12:51:10 +02:00
iliajie
c3bd222492 Fix wording 2022-12-26 12:22:20 +02:00
Jamie Cameron
459a5ee6b8 Fix bug in granting anonymous access if the anonymous user doesn't exist yet 2022-12-23 15:49:53 -08:00
iliajie
623fcc23d9 Fix to load images always from source host 2022-12-21 14:36:51 +02:00
iliajie
9d37f0d9e6 Fix to also check if session keys are set 2022-12-20 20:28:53 +02:00
Jamie Cameron
5fde216573 Merge branch 'master' of github.com:webmin/webmin 2022-12-18 21:54:20 -08:00
Jamie Cameron
4bd9c59038 Freeze and thaw dynamic reverse zones when updating a forward record https://github.com/webmin/webmin/issues/1810 2022-12-18 21:50:26 -08:00
iliajie
8c299b60ff Fix theme support in a single mode 2022-12-18 19:17:46 +02:00
iliajie
ad7967f3b5 Fix uninitialized warning 2022-12-18 19:07:21 +02:00
Jamie Cameron
e080fb3470 Zone type might be in upper case https://sourceforge.net/p/webadmin/bugs/5600/ 2022-12-17 23:17:55 -08:00
iliajie
62fccc4e0d Fix to nowrap virtual server select and submit button 2022-12-16 20:10:11 +02:00
iliajie
b0fc89f487 Fix release note links for Rocky 2022-12-16 20:08:27 +02:00
iliajie
a965b41cce Fix HTML arrow in accordions in Safari 2022-12-16 17:59:17 +02:00
iliajie
0bbb255a88 Fix adding in alerts (more) 2022-12-16 17:57:48 +02:00
iliajie
57b9e4ca3f Fix to smaller arrow size 2022-12-16 17:37:09 +02:00
iliajie
dbb691a7c4 Fix to always print table row even if empty #1809 2022-12-16 17:29:02 +02:00
iliajie
cf61a472f5 Fix padding in alerts 2022-12-16 17:17:22 +02:00
Jamie Cameron
2a31af4870 When moving a Maildir folder, only move the cur/new/tmp dirs because there might be other sub-folders or files 2022-12-14 14:00:13 -08:00
Jamie Cameron
54044b78ef RC4 isn't strong enough anymore https://sourceforge.net/p/webadmin/bugs/5599/ 2022-12-14 11:38:01 -08:00
Jamie Cameron
726d28d807 Verify long-running websockets sessions in miniserv 2022-12-14 11:18:28 -08:00
iliajie
8db65344d5 Fix to rename framed theme ; fix version and deps 2022-12-11 20:07:21 +02:00
iliajie
cb6ad018cf Fix support for Usermin 2022-12-11 19:55:11 +02:00
iliajie
00bf2dd153 Fix arrow color in accordions 2022-12-11 19:03:18 +02:00
iliajie
b54bd7f21e Fix switches color 2022-12-11 18:57:47 +02:00
iliajie
6829c94257 Add favicons to Framed Theme 2022-12-11 18:56:18 +02:00
iliajie
095288d661 Fix to add more space for switches in two mode 2022-12-11 16:48:48 +02:00
iliajie
3ea461d70c Fix Cloudmin mode 2022-12-11 16:46:51 +02:00
iliajie
5058e9c752 Add a new SVG icons to the navigation menu 2022-12-10 21:37:15 +02:00
iliajie
590ce839ae Add logos to the dashboard depending on the product 2022-12-10 21:36:40 +02:00
iliajie
e18e20605a Fix to use HTML collapse in hidden_start and hidden_end 2022-12-10 18:45:47 +02:00
iliajie
e38b923430 Fix to add borders to alerts in Gray theme 2022-12-10 16:57:03 +02:00
iliajie
06d429af32 Fix to switch to using HTML only menu accordion https://github.com/webmin/webmin/issues/1802#issuecomment-1343254856
.. to support browsers with disabled JavaScript
2022-12-10 15:58:55 +02:00
iliajie
f300bd7f5b Add support for more options in unit section in systemd 2022-12-10 15:14:00 +02:00
Jamie Cameron
50df0e4d02 Fix merge 2022-12-08 21:58:43 -08:00
Jamie Cameron
c6a4a80e58 Set USER variable properly for jk_chrootsh 2022-12-08 21:57:39 -08:00
Jamie Cameron
bb75d7fa7b ui-lib conversion 2022-12-05 23:24:44 -08:00
Jamie Cameron
ce43b53e5c ui-lib conversion 2022-12-05 23:20:23 -08:00
Jamie Cameron
aaee5bedac Merge pull request #1805 from webmin/dev/set-xterm-improvements2
Add support to set TERM variable and shell character encoding
2022-12-05 09:58:19 -08:00
iliajie
edcf8841ab Fix to set config option directly 2022-12-05 19:50:54 +02:00
Jamie Cameron
5275505ba0 Merge pull request #1807 from webmin/dev/add-new-libroot-env-var
Fix to set a new `LIBROOT` environmental variable
2022-12-05 09:36:58 -08:00
iliajie
a9349c7fe5 Add new LIBROOT env var 2022-12-05 19:03:10 +02:00
Ilia
9f0d9a967b Merge pull request #1806 from Divarion-D/patch-1
Update ru
2022-12-05 17:06:38 +02:00
iliajie
5f6f65a78f Fix to use PERLLIB as DOCUMENT_ROOT never set at a time 2022-12-05 17:03:51 +02:00
Danil
bb15603724 Merge pull request #2 from Divarion-D/patch-2
Update ru.auto
2022-12-05 15:21:48 +03:00
Danil
84c92c4da2 Update ru.auto 2022-12-05 15:16:37 +03:00
Danil
e51e3a8d42 Update ru 2022-12-05 11:41:25 +03:00
iliajie
d336f5a15b Fix to add colors to ip command in module default mode 2022-12-05 02:59:42 +02:00
iliajie
6c297057d3 Add support to set shell character encoding 2022-12-05 02:16:18 +02:00
iliajie
1531b18566 Add support to set TERM variable 2022-12-05 01:40:18 +02:00
Jamie Cameron
be9b67de40 Fix editing and creation of IPv6 addresses 2022-12-03 22:07:02 -08:00
Jamie Cameron
a80df4be5c Merge branch 'master' of github.com:webmin/webmin 2022-12-03 21:47:07 -08:00
Jamie Cameron
b05a55e8c2 Complete support for editing interfaces in include files 2022-12-03 21:46:25 -08:00
iliajie
f1a434b65a Fix to always set vendor_perl if perllib config option is set
https://sourceforge.net/p/webadmin/bugs/5595/
2022-12-02 00:22:43 +02:00
iliajie
543b87c9e7 Fix signature verified message padding 2022-12-01 21:53:15 +02:00
iliajie
fa16dc06d1 Fix language strings on Webmin update 2022-12-01 21:22:04 +02:00
iliajie
1aa0d9b812 Fix a bug when there is no output on RPM upgrades 2022-12-01 20:23:38 +02:00
iliajie
6269c24f03 Fix to check deeper for potentially missing dependencies 2022-12-01 19:31:55 +02:00
iliajie
cf4ebf0bfe Fix WebSocket protocol to be conditional 2022-12-01 15:04:59 +02:00
iliajie
2f21d0b067 Fix to call setup_ssl_contexts conditionally 2022-12-01 14:42:20 +02:00
iliajie
bf19dc1119 Fix to actually print loaded file timestamp 2022-12-01 14:17:51 +02:00
Jamie Cameron
40091463ee Use correct extension for package file https://github.com/webmin/authentic-theme/issues/1633 2022-11-27 20:24:21 -08:00
Jamie Cameron
4eaddb6359 Major version bump 2022-11-27 20:09:30 -08:00
Jamie Cameron
3a33573c30 Fix all days text 2022-11-27 20:08:52 -08:00
Jamie Cameron
5410dd7bb9 Merge branch 'master' of github.com:webmin/webmin 2022-11-27 12:23:29 -08:00
Jamie Cameron
e58d54ed86 Use absolute path 2022-11-27 12:23:23 -08:00
iliajie
d900e90203 Update translations 2022-11-27 21:03:46 +02:00
Jamie Cameron
f27ad16496 Merge branch 'master' of github.com:webmin/webmin 2022-11-27 09:25:41 -08:00
Jamie Cameron
6673b314b2 Return line number and filename 2022-11-27 09:25:35 -08:00
Jamie Cameron
2e0b7ef82b Merge pull request #1799 from webmin/dev/test-if-Net-SSLeay-get_servername
Fix to check if `Net::SSLeay::get_servername` exists (on CentOS 6)
2022-11-27 09:25:03 -08:00
iliajie
e72415952c Fix to check if Net::SSLeay::get_servername exists (on CentOS 6)
https://github.com/webmin/webmin/issues/1798#issuecomment-1328295876
2022-11-27 19:19:15 +02:00
Jamie Cameron
4d67184f2c Put websockets lib into the xterm directory 2022-11-27 09:18:31 -08:00
Jamie Cameron
f4f6eeac6d Merge branch 'master' of github.com:webmin/webmin 2022-11-27 09:15:10 -08:00
Jamie Cameron
3e3dae7854 Fix permissions 2022-11-27 09:15:06 -08:00
iliajie
f4b54f13ee Add text to suggest to install EPEL first for RHEL systems
.. or install package manually from `devel:languages:perl` on openSUSE
2022-11-27 16:57:52 +02:00
iliajie
276c599e55 Fix changelog include major 2.010 2022-11-27 14:50:33 +02:00
iliajie
97725db48d Add mention for the new setup-repos.sh script 2022-11-27 14:48:54 +02:00
iliajie
7fcfafd0fa Add possibly missing Digest::MD5 dependency 2022-11-27 14:46:34 +02:00
iliajie
31385f526c Merge remote-tracking branch 'origin/master' 2022-11-27 13:15:55 +02:00
iliajie
35a5e3f5b9 Fix missing websockets-lib-funcs.pl file in dist
https://sourceforge.net/p/webadmin/bugs/5592/
https://github.com/webmin/webmin/issues/1797
2022-11-27 13:15:33 +02:00
Jamie Cameron
ad8311d22e Fix version 2022-11-26 13:58:21 -08:00
iliajie
b6211aff2e Merge remote-tracking branch 'origin/master' 2022-11-26 23:16:37 +02:00
iliajie
afebdc912c Update CHANGELOG.md (2.010) 2022-11-26 23:16:15 +02:00
Jamie Cameron
96395b1592 Clean up code 2022-11-26 12:10:18 -08:00
Jamie Cameron
e158eb6005 Merge branch 'master' of github.com:webmin/webmin 2022-11-25 19:22:02 -08:00
Jamie Cameron
38d0188a66 New version bump 2022-11-25 19:19:39 -08:00
Jamie Cameron
8f29bb20e4 Merge pull request #1796 from webmin/dev/factor-out-websockets-funcs
Fix to factor out Webmin Websockets subs
2022-11-25 18:31:38 -08:00
iliajie
d84df45886 Fix to factor out Webmin Websockets subs 2022-11-25 17:06:13 +02:00
Jamie Cameron
ad61b5972b Merge pull request #1794 from saintman23/patch-3
Update missing RU translations
2022-11-24 22:57:34 -08:00
saintman23
90c002ae8c Update missing RU translations
Corrected missing translations to russian language for Cron Module.
2022-11-24 23:54:38 +00:00
Jamie Cameron
38a80244db Merge branch 'master' of github.com:webmin/webmin 2022-11-24 12:43:44 -08:00
Jamie Cameron
3d314a24dc Remove obsolete check for protocols on startup https://github.com/webmin/webmin/issues/1793 2022-11-24 12:43:29 -08:00
iliajie
4b92766495 Fix Webmin Samba module support for openSUSE Leap and Tumbleweed 2022-11-24 22:08:18 +02:00
iliajie
1705bab13e Add proper support for openSUSE Tumbleweed 2022-11-24 21:58:55 +02:00
Jamie Cameron
4ede4520e4 Merge branch 'master' of github.com:webmin/webmin 2022-11-23 21:15:28 -08:00
Jamie Cameron
61806a8799 Remove obsolete code to fix use of -f 2022-11-23 21:15:23 -08:00
Jamie Cameron
82be6e142f Merge pull request #1792 from webmin/dev/add-buffer-size-for-transfers
Add API to get buffer size for file transfers
2022-11-23 21:00:08 -08:00
Jamie Cameron
aa5443881c Merge branch 'master' of github.com:webmin/webmin 2022-11-23 15:27:33 -08:00
Jamie Cameron
617b731671 If source for cert is a link, copy the underlying file https://github.com/webmin/webmin/issues/1505 2022-11-23 15:27:26 -08:00
iliajie
166df0cb92 Fix openSUSE Squid server config 2022-11-23 23:50:02 +02:00
iliajie
b32c5a01c7 Fix openSUSE SSH server config 2022-11-23 23:38:51 +02:00
iliajie
4e21e753f4 Fix openSUSE Postfix config 2022-11-23 23:28:19 +02:00
iliajie
c0c993efec Fix openSUSE reload config command for BIND 2022-11-23 22:56:25 +02:00
iliajie
14b5ae8b4f Fix openSUSE Apache pid file location 2022-11-23 22:52:50 +02:00
iliajie
f4c367f2ae Add support for contemporary OpenSUSE Leap Linux 2022-11-23 22:30:51 +02:00
iliajie
c4a2bb6cd7 Fix to exclude file list as well
https://github.com/webmin/authentic-theme/issues/1632#issuecomment-1325125910
2022-11-23 16:12:35 +02:00
iliajie
06beb70568 Fix modules test 2022-11-22 21:04:31 +02:00
iliajie
d03dcf02d2 Add Linux Lite support
https://sourceforge.net/p/webadmin/discussion/600155/thread/adfe8e949f/?limit=25#57c9
2022-11-22 20:01:33 +02:00
iliajie
e9d58bdd42 Add API to get buffer size for file transfers 2022-11-21 21:07:00 +02:00
iliajie
61000107b8 If IO::Pty->set_winsize failed make ioctl directly
f550ffe799 (r89288344)
2022-11-21 20:24:55 +02:00
iliajie
8f6a2ac462 Add Webmin repository setup script 2022-11-20 18:19:35 +02:00
Jamie Cameron
291ba25691 Merge pull request #1662 from webmin/dev/gray-theme-replace
Simply replace Gray Framed with Virtualmin Framed theme
2022-11-18 21:52:44 -08:00
iliajie
1550e9e639 Revert "Fix to place the checkbox the same way"
This reverts commit 7ac4a389fb.
2022-11-18 20:44:24 +02:00
iliajie
7ac4a389fb Fix to place the checkbox the same way 2022-11-18 20:43:51 +02:00
iliajie
394ca56f4b Add more space before the checkbox 2022-11-18 20:41:11 +02:00
Jamie Cameron
612e2ceb21 Merge branch 'master' of github.com:webmin/webmin 2022-11-17 20:57:30 -08:00
Jamie Cameron
76f9bea696 Fix display of multiple buttons https://sourceforge.net/p/webadmin/bugs/5561/ 2022-11-17 20:56:07 -08:00
iliajie
011e76c90a Fix missing lib call for forms library 2022-11-17 21:25:42 +02:00
iliajie
65a0ced403 Fix to let zone have its old WebminUI dependency 2022-11-17 21:12:20 +02:00
iliajie
85d303def9 Add Digest:HMAC as can be missing outside of Virtualmin install 2022-11-17 20:19:27 +02:00
iliajie
a57af8c481 Add missing vendor_perl to include 2022-11-17 15:49:45 +02:00
iliajie
5f5a2b606f Fix to add complete set of libraries from Type-Tiny package 2022-11-17 15:13:55 +02:00
iliajie
76f15dd28f Fix to remove manual and pods 2022-11-17 15:11:26 +02:00
iliajie
7abb43c67f Add Authen:OATH, Moo and Type-Tiny 2022-11-17 14:55:36 +02:00
iliajie
0533ce55c4 Fix to remove JSON and Authen as part of vendor_perl now 2022-11-17 14:47:18 +02:00
iliajie
745261d663 Update all vendor_perl modules from upstream (MetaCPAN) 2022-11-17 14:25:44 +02:00
iliajie
894beb251e Add to bundle modules from Authentic 2022-11-17 13:37:17 +02:00
Jamie Cameron
bd12983a77 Merge branch 'master' of github.com:webmin/webmin 2022-11-16 17:21:32 -08:00
Jamie Cameron
8df0c4dc41 RHEL versions can have decimals https://github.com/virtualmin/virtualmin-gpl/issues/477 2022-11-16 17:21:03 -08:00
Jamie Cameron
bcf2e0879a Merge pull request #1791 from webmin/dev/combined-perl-vendors
Fix to use unified path for all third party Perl modules
2022-11-16 17:06:12 -08:00
iliajie
023f1b88b1 Fix to place package always at the top 2022-11-16 23:29:22 +02:00
iliajie
4c0ac21dc7 Fix to remove Authen::OATH 2022-11-16 23:21:39 +02:00
iliajie
8de2847fe5 Fix to call JSON after WebminCore 2022-11-16 22:54:56 +02:00
iliajie
a294083e12 Fix to use unified path for all third party Perl modules 2022-11-16 22:42:00 +02:00
Jamie Cameron
52588da598 Merge branch 'master' of github.com:webmin/webmin 2022-11-15 19:54:36 -08:00
Jamie Cameron
094f6e3f03 Fix query-source field https://sourceforge.net/p/webadmin/bugs/5590/ 2022-11-15 19:54:23 -08:00
iliajie
f15a13bb38 Fix URL to file name conversion 2022-11-15 22:59:07 +02:00
iliajie
0edfee6da2 Fix to use get_webprefix directly 2022-11-15 21:29:12 +02:00
iliajie
ef40015214 Fix CSS file name 2022-11-15 21:24:52 +02:00
Jamie Cameron
6a2125a891 Merge pull request #1789 from webmin/dev/xterm-fixes
Add minor clean ups
2022-11-14 15:04:15 -08:00
Ilia
94a3c27166 Merge pull request #1790 from krouma/master
Fix connecting to external IPv6 LDAP server
2022-11-14 14:16:00 +02:00
iliajie
d0511685a7 Fix to create a separate allocate_miniserv_websocket sub 2022-11-14 14:08:05 +02:00
Matyáš Kroupa
4b57b06b04 Fix connecting to external IPv6 LDAP server 2022-11-14 12:55:22 +01:00
iliajie
381aedcafe Fix { to be on the new line 2022-11-14 13:20:17 +02:00
iliajie
2c86164b6b Add Authen:OATH module 2022-11-14 12:09:01 +02:00
iliajie
dbb09b5278 Fix to adjust functions names 2022-11-14 00:04:25 +02:00
iliajie
4907aeb2dd Fix to save miniserv websocket after we have the pid from PTY 2022-11-13 23:57:10 +02:00
iliajie
b62fb504ac Fix to clean up others sockets if the shell server 2022-11-13 23:43:58 +02:00
iliajie
e6795f28f9 Fix to place cleanup_miniserv to the lib file 2022-11-13 23:40:58 +02:00
Jamie Cameron
0a6c67e55f Fix check for open ports 2022-11-13 09:31:25 -08:00
Jamie Cameron
3d443b378a Clean up leftover websocket proxies occasionally 2022-11-12 18:26:21 -08:00
Jamie Cameron
f698c0c548 Always check for modification when reading miniserv.conf 2022-11-12 18:25:27 -08:00
Jamie Cameron
87d7eec743 Minor code cleanups 2022-11-12 17:48:25 -08:00
Jamie Cameron
d82e89fb6b Merge pull request #1786 from webmin/xterm-enhancements-supreme
Add support for loading shell initialization file directly
2022-11-12 17:43:15 -08:00
iliajie
39bfa013f5 Fix to add a new line (for consistency with other configs) 2022-11-13 00:08:58 +02:00
iliajie
2687db85c7 Fix default 2022-11-13 00:07:10 +02:00
iliajie
a659146025 Fix to remove redundant line 2022-11-13 00:03:30 +02:00
iliajie
eb998dc84d Fix to use env for zsh 2022-11-13 00:02:32 +02:00
iliajie
e92a17c417 Fix to remove .shrc ; other cleans 2022-11-12 23:57:21 +02:00
iliajie
d754624baa Fix to remove loading globals as already loaded 2022-11-12 23:44:04 +02:00
iliajie
295f98c694 Fix to remove aliases 2022-11-12 23:13:33 +02:00
Ilia
74716f5d3f Merge branch 'master' into xterm-enhancements-supreme 2022-11-12 23:06:03 +02:00
iliajie
37453226da Fix to merge proc-lib.pl with master 2022-11-12 23:01:13 +02:00
iliajie
05475f051c Add default initialization file for zsh ; move scripts to rc/ dir 2022-11-12 21:42:56 +02:00
Jamie Cameron
7b2456aba5 Set PS1 and aliases via a shell rc file, rather than command injection 2022-11-12 11:09:14 -08:00
Jamie Cameron
3f1a9a5d8b Fix exec with a custom binary when the command has args 2022-11-12 11:04:30 -08:00
iliajie
0d1ced583f Fix missing HISTCONTROL 2022-11-12 20:48:06 +02:00
iliajie
d1fa6cea55 Fix comments 2022-11-12 20:47:54 +02:00
iliajie
e7f7aaaad5 Fix for better logging 2022-11-12 19:56:55 +02:00
iliajie
5991d905e3 Add support for user profiles too 2022-11-12 19:48:49 +02:00
iliajie
7062406267 Add more respect to user config 2022-11-12 19:40:21 +02:00
iliajie
a249e9be00 Fix to correctly support setting login shell mixed with params
There is no way to make it work correctly across all shell, i.e. param sequence which work with `bash` will fail with `csh`, as `-l` (login shell) can be the only flag specified
2022-11-12 19:32:56 +02:00
iliajie
e3212d7f94 Add default initialization file for sh 2022-11-12 17:58:33 +02:00
iliajie
c39b7fdc50 Fix to improve default config file name 2022-11-12 16:54:18 +02:00
iliajie
1ff0ee36e4 Add support for loading shell initialization file directly 2022-11-12 14:31:38 +02:00
iliajie
1763f9e4cc Fix to always prioritize module config over hardcoded shell flavors 2022-11-12 11:39:38 +02:00
iliajie
ec622fdf95 Add code comments 2022-11-12 11:32:39 +02:00
iliajie
ab00e4c7df Fix to check if internally sourced file is under user home 2022-11-12 10:56:55 +02:00
iliajie
825842267a Fix to check if given shell has init files set in our meta 2022-11-12 10:38:24 +02:00
iliajie
c75346ec93 Fix indent 2022-11-12 01:13:32 +02:00
iliajie
4f49d74def Fix typo 2022-11-12 01:11:46 +02:00
iliajie
6a97bf2ebf Add support to set in config user custom envs and commands 2022-11-12 00:56:36 +02:00
iliajie
dd4adbba77 Add respect to shell init files (depending on shell, bash only yet) 2022-11-12 00:32:04 +02:00
Jamie Cameron
a7ca787c16 Set HOME to correct path for the user being run as 2022-11-11 10:07:08 -08:00
iliajie
782f9ca351 Merge branch 'master' of github.com:webmin/webmin 2022-11-11 10:51:02 +02:00
Jamie Cameron
ad70a474d9 Run shell as a login shell 2022-11-10 21:38:05 -08:00
iliajie
79badb6f58 Revert "Fix to clean up as we should source user profile"
This reverts commit 29517915f9.
2022-11-11 00:53:41 +02:00
iliajie
b67f7c1e65 Fix to clean up old code 2022-11-10 22:56:54 +02:00
iliajie
29517915f9 Fix to clean up as we should source user profile 2022-11-10 22:27:52 +02:00
iliajie
9cef9452d1 Fix PS1 set directly (conditionally) https://github.com/webmin/webmin/discussions/1781 2022-11-10 22:12:26 +02:00
iliajie
661bb957f9 Update translations 2022-11-10 15:18:24 +02:00
iliajie
f42b7436f3 Add support to display and select yescrypt hashing scheme 2022-11-10 15:10:48 +02:00
Jamie Cameron
f6adfaa856 Merge pull request #1779 from marclaporte/patch-1
Fix a typo
2022-11-09 20:01:26 -08:00
Marc Laporte
42d1bfaf96 Fix a typo 2022-11-09 22:57:02 -05:00
Jamie Cameron
04a9b8785d Merge pull request #1778 from webmin/dev/xterm-further-improvements
Add further terminal improvements
2022-11-09 13:15:43 -08:00
iliajie
424c475b5f Fix terminal auto-fit feature for framed themes 2022-11-09 22:57:19 +02:00
iliajie
45e5049012 Fix to send user info 2022-11-09 21:02:28 +02:00
iliajie
26d19cb0d7 Fix other flavors to run by default only in bash 2022-11-09 21:01:13 +02:00
Ilia
38e9df8f48 Merge pull request #1776 from webmin/dev/xterm-escape-sequence
Fix to check for resize escape sequence explicitly
2022-11-09 20:50:35 +02:00
iliajie
b4603b6030 Fix to drop output suppress feature for now 2022-11-09 20:48:48 +02:00
iliajie
163480b859 Fix regex exclude chars logic
https://github.com/webmin/webmin/pull/1776#discussion_r1017431635
2022-11-09 20:04:29 +02:00
iliajie
ad9a5d7871 Fix incorrectly reverted send_binary (fixed before 3f1c4a23ad) 2022-11-08 20:16:53 +02:00
iliajie
693eda3971 Fix to remove debug 2022-11-08 17:32:00 +02:00
iliajie
d2932b3ed7 Fix not to send to display special calls (commands) 2022-11-08 17:25:50 +02:00
iliajie
7fc6336f8f Fix to check for resize escape sequence explicitly 2022-11-08 16:04:44 +02:00
iliajie
49bbb04750 Fix to re-added accidentally remove clear screen on initial load 2022-11-08 15:12:16 +02:00
iliajie
d5892ed348 Fix indent - convert spaces to tabs 2022-11-08 15:09:39 +02:00
Jamie Cameron
f550ffe799 Send special message on resize, and use set_winsize to apply it 2022-11-07 17:53:09 -08:00
Jamie Cameron
9ab8908710 Merge pull request #1775 from webmin/dev/xterm-resize
Add first steps to support Terminal resize
2022-11-07 17:17:50 -08:00
iliajie
88de56f447 Add missing addon-fit.js file 2022-11-08 01:26:43 +02:00
iliajie
f7fb861e73 Add first steps to support Terminal resize 2022-11-08 01:19:06 +02:00
Jamie Cameron
21c47af212 Merge branch 'master' of github.com:webmin/webmin 2022-11-07 11:49:05 -08:00
Jamie Cameron
2c6533146d Use Digest::SHA if SHA1 isn't installed 2022-11-07 11:48:02 -08:00
iliajie
44909997d0 Fix to adjust columns and rows offset consistently (both server and UI) 2022-11-07 13:36:26 +02:00
Jamie Cameron
b0c26867fe Expand hostname from /etc/hosts if needed 2022-11-06 20:45:51 -08:00
Jamie Cameron
1a953bf2fe Completed support for editing multiple extension lines 2022-11-06 18:28:24 -08:00
Jamie Cameron
3a67aa1071 Work on support for selecting extensions 2022-11-06 17:31:45 -08:00
Jamie Cameron
676f369cd3 ui-lib conversion 2022-11-06 14:17:35 -08:00
iliajie
e65a5718d6 Merge remote-tracking branch 'origin/master' 2022-11-06 19:05:37 +02:00
iliajie
8daba09826 Fix to support more headers 2022-11-06 19:05:18 +02:00
Jamie Cameron
f74ef12e70 Use new ui library 2022-11-05 21:12:26 -07:00
Jamie Cameron
5a818ce701 Use new ui library 2022-11-05 21:04:37 -07:00
Jamie Cameron
ca35844f82 Merge branch 'master' of github.com:webmin/webmin 2022-11-05 20:55:45 -07:00
Jamie Cameron
3672394e2e Use new ui library 2022-11-05 20:55:22 -07:00
iliajie
cd341663a1 Update translations 2022-11-05 15:49:34 +02:00
iliajie
3c15d076d5 Add better on load UX 2022-11-05 15:45:44 +02:00
iliajie
8779372aec Fix to check if defined as 0 is a value too 2022-11-05 13:43:46 +02:00
Jamie Cameron
187914b069 Merge pull request #1774 from webmin/dev/shell-auto
Add automatic option for command prompt color customization
2022-11-04 15:28:54 -07:00
Jamie Cameron
30b9858417 Merge pull request #1773 from webmin/dev/drop-obsolete-dnssectools
Drop obsolete DNSSEC-Tools
2022-11-04 15:07:50 -07:00
iliajie
19070f3383 Fix to call getpwnam once 2022-11-05 00:07:14 +02:00
iliajie
7a5e917d34 Add automatic option for command prompt color customization 2022-11-04 21:01:34 +02:00
iliajie
3b86ebed97 Fix indent 2022-11-04 11:38:18 +02:00
Jamie Cameron
6fb8de6e37 Encode utf-8 input into binary before sending to the shell 2022-11-03 21:50:32 -07:00
iliajie
9a06472017 Drop obsolete DNSSEC-Tools 2022-11-03 18:49:06 +02:00
Jamie Cameron
2b77a405ff Merge branch 'master' of github.com:webmin/webmin 2022-11-02 23:22:50 -07:00
Jamie Cameron
e3792a48e0 Check for timeouts at more places when reading headers https://github.com/webmin/webmin/issues/1767 2022-11-02 23:21:59 -07:00
iliajie
389d107a39 Add support for maximum input variables limit
https://forum.virtualmin.com/t/php-fpm-do-not-work/117593/8?u=ilia
2022-11-02 20:48:53 +02:00
Jamie Cameron
7142ae8620 Merge pull request #1771 from webmin/dev/xterm-add-special-flavor
Add special flavors to a new Terminal module
2022-10-31 16:12:10 -07:00
iliajie
1d414e1533 Fix to actually add an option with 0 value 2022-10-31 23:49:52 +02:00
iliajie
2e4d3c8ccf Fix to make it off by default 2022-10-31 23:44:45 +02:00
iliajie
f2687a20d1 Revert "Fix to make sure that feature is available by default (server owners)"
This reverts commit 027578312a.
2022-10-31 23:17:23 +02:00
Jamie Cameron
9f42eaf58f Read more than 1 character at a time 2022-10-31 14:10:58 -07:00
iliajie
027578312a Fix to make sure that feature is available by default (server owners) 2022-10-31 22:21:53 +02:00
iliajie
f144517e6c Fix HISTCONTROL always be called as we use clear command uncond 2022-10-31 17:45:26 +02:00
iliajie
41f6eaf1f1 Fix to send commands in a list to the theme 2022-10-31 17:15:24 +02:00
iliajie
fa0fcf52c1 Fix to make sure skipping command history works 2022-10-31 17:06:40 +02:00
iliajie
c6419a471e Fix not to store init commands in history 2022-10-31 16:45:54 +02:00
iliajie
1a296d9579 Fix to tell SPA themes what's up 2022-10-31 16:29:58 +02:00
iliajie
bf74599502 Add much smoother terminal initial load 2022-10-31 16:27:10 +02:00
iliajie
8c2ae56298 Add actual config option 2022-10-31 16:26:49 +02:00
iliajie
ccace2ce81 Add config option to make bash prompt look nice (user dependent) 2022-10-31 16:25:50 +02:00
Jamie Cameron
f1b2adaa59 Fixes for CentOS 8 2022-10-30 22:05:17 -07:00
Jamie Cameron
e5e4b65faf Add support for parameter for directory to start in, and make sure user param is preserved 2022-10-30 16:05:07 -07:00
Jamie Cameron
d3d33af3c0 Clean up code and prevent HTML attacks on untrusted inputs 2022-10-30 15:55:21 -07:00
Jamie Cameron
13db341e50 Merge pull request #1770 from webmin/dev/add-support-for-switch-user
Add an ability for a master admin to switch to specific user
2022-10-30 15:46:21 -07:00
iliajie
16859a87fd Remove redundant error message (already had one) 2022-10-31 00:23:24 +02:00
iliajie
27e3b7cbed Fix user test 2022-10-31 00:21:12 +02:00
iliajie
e1816a9e3c Update language 2022-10-31 00:19:18 +02:00
iliajie
d625a5d2f9 Show error if user doesn't exists 2022-10-31 00:14:01 +02:00
iliajie
43832c8ed9 Add an ability for a master admin to switch to specific user 2022-10-30 21:52:44 +02:00
iliajie
c8e94c8cdc Fix to use Digest::SHA instead 2022-10-30 21:49:52 +02:00
Jamie Cameron
f2ca4e1fdd Merge pull request #1769 from webmin/dev/xterm-deps-bundle
Bundle dependencies for a new Terminal module
2022-10-30 12:47:23 -07:00
iliajie
b014291882 Fix to revert not fully related change 2022-10-30 21:31:38 +02:00
Jamie Cameron
6d96dd6a13 Add option to use existing websockets key instead of session ID 2022-10-30 12:21:34 -07:00
iliajie
3d73e2faae Revert "Fix to always use use Digest::SHA"
This reverts commit 7fb5e74e2b.
2022-10-30 20:56:32 +02:00
iliajie
d180b0a0f4 Revert "Add support to switch to given user"
This reverts commit 62d2a6d0e8.
2022-10-30 20:53:33 +02:00
iliajie
62d2a6d0e8 Add support to switch to given user 2022-10-30 20:46:04 +02:00
iliajie
a57151c7bd Fix to also remove telnet module from defaults 2022-10-30 20:03:40 +02:00
iliajie
5c7494cccd Fix to change dependency to Digest::SHA 2022-10-30 19:35:16 +02:00
iliajie
7fb5e74e2b Fix to always use use Digest::SHA 2022-10-30 18:24:17 +02:00
iliajie
e098d614cb Add xterm and remove ajaxterm 2022-10-30 18:11:58 +02:00
iliajie
2a01e93371 Fix dependency module name for Debian package 2022-10-30 18:09:34 +02:00
iliajie
c57fba5b57 Add to bundle Protocols:WebSocket and Net:WebSocket 2022-10-30 17:50:47 +02:00
iliajie
cd5616a6c0 Fix to move module check at the top 2022-10-30 13:30:02 +02:00
Jamie Cameron
7bceedfe42 Make code cleaner and stop using float() for validation 2022-10-29 13:23:22 -07:00
Jamie Cameron
669af033d1 Merge branch 'master' of github.com:webmin/webmin 2022-10-29 13:16:40 -07:00
Jamie Cameron
eef79887ee Clean up leftover connections in more cases 2022-10-29 13:16:30 -07:00
iliajie
25f01179a3 Add is_int and is_float subs 2022-10-29 18:15:39 +03:00
Jamie Cameron
0185397a0c Merge branch 'master' of github.com:webmin/webmin 2022-10-28 16:07:25 -07:00
Jamie Cameron
e8a875fc29 Check ports in use in miniserv.conf, even if they haven't been opened yet 2022-10-28 16:07:19 -07:00
iliajie
ec216a0115 Fix to parse float 2022-10-28 22:36:56 +03:00
iliajie
87c8146698 Add parse float API 2022-10-28 22:35:57 +03:00
Jamie Cameron
9f2ef4c91a Background process when its ready to open a socket 2022-10-28 11:31:29 -07:00
Jamie Cameron
20f40d0d38 Merge branch 'master' of github.com:webmin/webmin 2022-10-27 18:26:45 -07:00
Jamie Cameron
9ea1f0ad52 Make boxes bigger 2022-10-27 18:19:20 -07:00
Jamie Cameron
989e15d4cd Merge pull request #1766 from webmin/dev/dont-expose-socket-as-global-variable
Fix not to expose active `socket` to a global scope
2022-10-27 13:06:36 -07:00
iliajie
5204bd1a1b Add to support onclose event handler (for connection lost) 2022-10-27 21:49:08 +03:00
iliajie
72cce4349b Add error handling 2022-10-27 20:43:03 +03:00
iliajie
2574e2012f Fix to always clear screen as sometimes command-prompt is eaten up 2022-10-27 20:32:39 +03:00
iliajie
fbef076ebc Fix not to expose active socket to a global scope 2022-10-27 20:29:39 +03:00
Jamie Cameron
3c5e065edc Cleanup todos 2022-10-26 23:17:02 -07:00
iliajie
84a7279442 Rename module to Terminal 2022-10-27 03:07:05 +03:00
iliajie
435c55039e Fix error message wording 2022-10-27 03:06:31 +03:00
iliajie
4aa80112c4 Send port too 2022-10-27 01:10:33 +03:00
Jamie Cameron
a1d09c977f Don't terminate existing shell because of socket probe from a new shell 2022-10-26 11:35:57 -07:00
Jamie Cameron
67f8f9ccd6 Merge branch 'master' of github.com:webmin/webmin 2022-10-26 09:47:57 -07:00
Jamie Cameron
c23c334eed Connection: header may be more than just upgrade 2022-10-26 09:47:27 -07:00
iliajie
e94b819b7b Fix to detect terminal width and height only for regular themes 2022-10-26 19:19:31 +03:00
Jamie Cameron
4c7eb9ccb2 Clean out webmin environment vars 2022-10-26 09:08:01 -07:00
Jamie Cameron
a1b497dc72 Merge branch 'master' of github.com:webmin/webmin 2022-10-26 09:06:58 -07:00
Jamie Cameron
7064fc4708 Start in user's home dir 2022-10-26 09:06:43 -07:00
iliajie
29960cfe92 Fix indent 2022-10-26 13:06:40 +03:00
iliajie
ec1a1ed023 Fix cap 2022-10-26 12:34:41 +03:00
Jamie Cameron
a97bf30bd8 Make module name consistent 2022-10-25 23:35:08 -07:00
Jamie Cameron
b640e87969 Fix user switching 2022-10-25 23:34:59 -07:00
Jamie Cameron
3026a51a1f Code cleanup 2022-10-25 22:44:39 -07:00
Jamie Cameron
e9bcccfc8c getpwnam can return 0 for root 2022-10-25 22:13:34 -07:00
Jamie Cameron
b32fb2da61 Fix up merge conflict 2022-10-25 13:40:58 -07:00
Jamie Cameron
b7758a8bcd Support using remote user 2022-10-25 13:38:38 -07:00
Jamie Cameron
65aaf7ad92 Merge pull request #1765 from webmin/dev/xterm.js
Interactive shell improvements
2022-10-25 13:32:02 -07:00
iliajie
296a904e78 Fix to pass only clear data to the theme 2022-10-25 21:32:45 +03:00
iliajie
5f32e6e80e Fix to clear left overs (after removed fit addon) 2022-10-25 21:08:54 +03:00
iliajie
a29a356689 Change module name to Terminal 2022-10-25 21:03:54 +03:00
iliajie
1cb39a681c Add further improvements to the xterm module:
1. Drop fit addon, as we always pass cols and rows (even in auto mode)
   2. Fix terminal fit by columns and lines (rows)
   3. Add CSS only based pre-loader
   4. Refactor and improve code
2022-10-25 20:50:04 +03:00
iliajie
e1a61d7815 Fix indent (properly) 2022-10-25 13:08:59 +03:00
iliajie
8b60a24251 Fix indent 2022-10-25 13:06:52 +03:00
iliajie
bf46fe67b8 Fix offset to be 5 as appears to be best with various scaling modes 2022-10-25 04:17:02 +03:00
iliajie
760e0e3152 Fix to always pass cols and rows options ; fix adjustments 2022-10-25 04:02:10 +03:00
iliajie
b1a2b5dfc9 Add support for SPA themes 2022-10-25 03:00:37 +03:00
iliajie
86e1493dee Fix not to use barewords for file handler 2022-10-25 00:49:08 +03:00
iliajie
74e37099fd Fix to use headers when set to avoid initial redirect 2022-10-25 00:35:07 +03:00
iliajie
fe81978900 Fix rows (lines) to be browser dependent (i.e. to fit nano controls) 2022-10-25 00:00:23 +03:00
iliajie
3f1c4a23ad Fix UTF-8 support (don't double encode) 2022-10-24 23:38:30 +03:00
iliajie
21faef0804 Fix indent and proper code formatting 2022-10-24 23:26:22 +03:00
iliajie
ed7997d306 Fix to use xterm-256color .. as it works on all contemporary systems 2022-10-24 23:14:09 +03:00
iliajie
ba10eb4173 Add support to setup column size from UI (or work automatically) 2022-10-24 23:07:04 +03:00
iliajie
ea741f002d Fix to add config option to set width and height 2022-10-24 21:44:58 +03:00
iliajie
6948205ebe Fix to auto-focus terminal 2022-10-24 20:06:33 +03:00
iliajie
4c686dbd1d Fix to actually load to fit the page ; remove tables 2022-10-24 18:43:13 +03:00
iliajie
6ad8c64c31 Drop rows and columns as terminal will fit the container automatically 2022-10-24 18:30:29 +03:00
iliajie
cc70ab2f39 Add to load auto-fit module ; load with serial 2022-10-24 18:24:04 +03:00
iliajie
1019a2697a Add new module to auto-fit container size 2022-10-24 18:21:27 +03:00
iliajie
214b5f3e61 Drop .map files 2022-10-24 18:21:12 +03:00
iliajie
379cf53076 Update to the latest Xterm.js 5.0.0 2022-10-24 18:20:44 +03:00
Jamie Cameron
285815cab2 Merge pull request #1762 from webmin/dev/fix-systemd-lost-properties
Fix `systemd` unit lost properties
2022-10-23 12:35:13 -07:00
Jamie Cameron
8cdd3eeeab Add config options for width and height 2022-10-22 23:17:21 -07:00
Jamie Cameron
acec438536 Pretent to be a vt100 2022-10-22 18:19:02 -07:00
Jamie Cameron
98c2ce24c1 Include the session ID in the websockets key so that it can be verified on the backend to prevent misuse of the session 2022-10-22 18:17:15 -07:00
Jamie Cameron
b049ba6c3b Add more debug info 2022-10-22 12:13:27 -07:00
Jamie Cameron
f153590cf2 Merge branch 'master' of github.com:webmin/webmin 2022-10-22 12:09:29 -07:00
Jamie Cameron
0c5cbaef3f Launching a shell actually works now! 2022-10-22 12:07:25 -07:00
iliajie
cb98164c82 Fix to only get specific properties for speed 2022-10-22 19:07:05 +03:00
iliajie
0930bdde32 Fix indent 2022-10-22 14:33:42 +03:00
iliajie
debcde489d Abstract systemd unit types 2022-10-22 14:32:02 +03:00
iliajie
bf0a3a109b Fix to filter out all possible templates 2022-10-22 14:18:46 +03:00
Ilia
231c8fcbd3 Merge branch 'master' into dev/fix-systemd-lost-properties 2022-10-22 13:57:02 +03:00
iliajie
831abe0812 Fix to run systemctl show individually for each unit instead 2022-10-22 13:51:40 +03:00
iliajie
429cf742be Sync with master 2022-10-22 13:48:46 +03:00
iliajie
e2438029ab Fir to preformat error message 2022-10-22 13:40:57 +03:00
Jamie Cameron
532e1150ce Asking for properties causes some units to be skipped 2022-10-21 22:22:05 -07:00
Jamie Cameron
70546895cd Columns in index might be quoted https://sourceforge.net/p/webadmin/bugs/5588/ 2022-10-21 19:48:02 -07:00
Jamie Cameron
3758aec710 Merge branch 'master' of github.com:webmin/webmin 2022-10-21 19:32:18 -07:00
Jamie Cameron
5224603d0a Show key state 2022-10-21 19:31:14 -07:00
Ilia
8d7731e72b Merge pull request #1763 from 7Adrian/patch-1
Some fixes in polish translation
2022-10-21 14:39:12 +03:00
7Adrian
8db0de4f9c Merge branch 'webmin:master' into patch-1 2022-10-21 13:09:25 +02:00
Jamie Cameron
d7c34eab2b Limit a connection to a user 2022-10-20 22:22:45 -07:00
Jamie Cameron
a87f3fbf89 No need for forked command mode for now 2022-10-20 21:41:14 -07:00
Jamie Cameron
9c56426ccd Start of work on xterm shell over websockets 2022-10-20 21:39:38 -07:00
iliajie
5404142690 Fix to run systemctl show for each unit 2022-10-20 13:33:01 +03:00
Jamie Cameron
9350bd79cd Separate units in systemctl show by the spaces between them 2022-10-19 22:06:50 -07:00
Jamie Cameron
854d34bda2 Revert "Fix stop loosing systemd units https://github.com/webmin/webmin/issues/1745"
This reverts commit 5a53efb560.
2022-10-19 22:01:33 -07:00
Jamie Cameron
0ec465cfb0 Also check dynamic status before editing 2022-10-19 17:04:35 -07:00
Jamie Cameron
f7441d2c22 Include dynamic zone status in cache, and use this to determined whether a freeze/thaw is needed 2022-10-19 17:01:31 -07:00
Jamie Cameron
65a00792aa Merge branch 'master' of github.com:webmin/webmin 2022-10-19 16:39:49 -07:00
7Adrian
6495b12ddc Fix polish translation
Some polish chars were bad converted in ASCII.
2022-10-20 01:04:57 +02:00
7Adrian
561763d610 Fixed typo mistake 2022-10-20 00:21:00 +02:00
7Adrian
758370c84c Fixed typo mistake 2022-10-20 00:16:49 +02:00
7Adrian
8d5f43d73b Fix polish translation
Some polish chars were bad converted in ASCII.
2022-10-20 00:10:20 +02:00
Ilia
4b9e7831af Merge pull request #1761 from kwadrat/master
Fix: Doręczać
2022-10-19 16:02:44 +03:00
iliajie
b9e6ceecfc Fix systemd lost properties 2022-10-19 15:19:11 +03:00
iliajie
60349eb62e Protect Webmin from being deleted or stopped, and restart properly 2022-10-19 14:25:43 +03:00
iliajie
18a84c643e Update translations 2022-10-19 13:44:49 +03:00
iliajie
6a38dd89d1 Fix precedence is very important, especially when service is masked
* Unit must be enabled (and unmasked) first before starting
  * Therefore a service cannot be started before it's enabled in Webmin
2022-10-19 13:40:40 +03:00
Piotr Kasprzyk
f1924ddf81 Fix: Doręczać 2022-10-19 12:27:38 +02:00
iliajie
3456f581de Fix to prevent masked services from being edited 2022-10-19 12:40:20 +03:00
iliajie
460ba7d8cd Add support to display No (masked) state 2022-10-19 12:33:08 +03:00
iliajie
d16b6433f3 Fix to display stopped, disable and masked in orange 2022-10-19 12:28:14 +03:00
Jamie Cameron
a4d5956291 Fix new group CN 2022-10-18 22:45:42 -07:00
Jamie Cameron
afb8b9971a Merge branch 'master' of github.com:webmin/webmin 2022-10-18 20:56:33 -07:00
Jamie Cameron
de53c5acc0 Add back freeze and thaw when reloading zones https://sourceforge.net/p/webadmin/bugs/5587/ 2022-10-18 20:56:17 -07:00
iliajie
79f485d81d Fix to test if unit exists before masking ; add return codes 2022-10-18 19:05:45 +03:00
iliajie
783ba32a48 Fix detection of systemd unit (more than just .service) 2022-10-18 18:27:11 +03:00
iliajie
5a53efb560 Fix stop loosing systemd units https://github.com/webmin/webmin/issues/1745 2022-10-18 18:25:16 +03:00
iliajie
fa57718bf8 Fix for systemd types tests (more than just .service) 2022-10-18 18:14:03 +03:00
iliajie
b863134d61 Add new {mask|unmask}_actions for systemd systems 2022-10-18 13:54:02 +03:00
iliajie
e6a2bb15b0 Fix to test on a newly added API sub 2022-10-17 21:59:46 +03:00
Jamie Cameron
6546ad5e4a Merge branch 'master' of github.com:webmin/webmin 2022-10-17 11:26:46 -07:00
Jamie Cameron
8919aafc19 Use correct cert and key file when there is a hostname-specific cert 2022-10-17 11:26:20 -07:00
iliajie
9603792ab3 Fix not to test size 16e4a750b1 (r87054057) 2022-10-17 20:51:39 +03:00
iliajie
16e4a750b1 Fix a new miniserv_using_default_cert sub tests 2022-10-17 19:21:53 +03:00
iliajie
d3fe07cecc Fix typo 2022-10-17 17:36:13 +03:00
iliajie
ae99d7a862 Fix to use a new sub to test default cert 2022-10-17 14:39:49 +03:00
Jamie Cameron
81376eb3fc PID file may be in a different location on SuSE 15.4 https://sourceforge.net/p/webadmin/bugs/5586/ 2022-10-16 22:19:37 -07:00
Jamie Cameron
e8d971243f Handle a different tar password input 2022-10-16 17:23:52 -07:00
Jamie Cameron
ced2b98dde Use actual cert file when comparing with the default 2022-10-16 17:23:33 -07:00
Jamie Cameron
0895b4724f Pass SSL cert and key files for this connection on to CGI scripts 2022-10-16 17:20:58 -07:00
Jamie Cameron
2180c77d9a Add function to check for default cert 2022-10-16 13:27:04 -07:00
Jamie Cameron
f00a322d94 Actually forward the websockets protocol properly in proxy mode 2022-10-15 16:27:27 -07:00
Jamie Cameron
340b883f92 Don't lose debug log on reload 2022-10-14 23:35:24 -07:00
Jamie Cameron
2fad122571 Delete obsolete inets support 2022-10-14 16:22:30 -07:00
Jamie Cameron
e423216731 SHA1 digest is needed for websockets support 2022-10-14 16:15:35 -07:00
Jamie Cameron
85ec6381a1 Start of work to create an LDAP group when adding a user 2022-10-14 16:15:12 -07:00
Jamie Cameron
5507f501df Log SSL redirects 2022-10-14 15:30:05 -07:00
Jamie Cameron
60a93b9f55 Version bump for new features 2022-10-14 12:34:35 -07:00
Jamie Cameron
1cea2dfdd6 Merge branch 'master' of github.com:webmin/webmin 2022-10-14 12:31:40 -07:00
Jamie Cameron
273100ec6e Add support for websockets proxying via Webmin 2022-10-14 12:31:32 -07:00
iliajie
71fb561694 Fix to support displaying $miniserv::defcert warning message 2022-10-14 16:16:17 +03:00
iliajie
2d2bac1804 Fix to consider timers 2022-10-14 13:28:04 +03:00
iliajie
dd937476e3 Fix to drop removed PHP save mode controls
"This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0."
2022-10-12 14:37:44 +03:00
Jamie Cameron
22af3160c0 Merge branch 'master' of github.com:webmin/webmin 2022-10-11 23:24:44 -07:00
Jamie Cameron
94c64c2308 Freeze and thaw domain before editing 2022-10-11 23:24:35 -07:00
iliajie
8e18120cbd Fix to support older versions of OpenSSL 2022-10-11 00:43:38 +03:00
iliajie
8410db5a1f Update default miniserv.pem cert 2022-10-11 00:29:38 +03:00
iliajie
ea0e66cff5 Fix self-signed certificate work in Chrome (on MacOS) 2022-10-10 21:32:44 +03:00
iliajie
bbef983d2f Fix to drop debug lines 2022-10-10 20:55:40 +03:00
iliajie
fd7102ce81 Fix self-signed certificate generation 2022-10-10 18:01:41 +03:00
Jamie Cameron
62c3e4b3cd Include localhost and hostname in SSL alt names 2022-10-09 19:31:46 -07:00
Jamie Cameron
57801818b9 Handle time-only log format 2022-10-09 00:04:24 -07:00
Jamie Cameron
84808c3a3b Fix perl warning 2022-10-08 23:50:01 -07:00
Jamie Cameron
4ae46dbe83 Also fix MySQL strings in PHP-INI module https://github.com/virtualmin/virtualmin-gpl/issues/464 2022-10-08 23:22:52 -07:00
Jamie Cameron
06094e22f4 Change date automatically 2022-10-07 23:15:00 -07:00
Jamie Cameron
7eb0821606 Version bump 2022-10-07 23:08:34 -07:00
Jamie Cameron
d3d6901a23 Add UI to show past playtime 2022-10-07 23:08:14 -07:00
Jamie Cameron
57537ef282 Include localhost and hostname in altnames 2022-10-05 17:19:09 -07:00
Jamie Cameron
f13d6347a6 Merge branch 'master' of github.com:webmin/webmin 2022-10-05 17:10:30 -07:00
Jamie Cameron
1d7cd7da24 Include localhost and the hostname in altnames 2022-10-05 17:10:05 -07:00
iliajie
7c301848cb Fix setting hostname for Debian and Ubuntu using hostnamectl 2022-10-05 22:32:29 +03:00
Jamie Cameron
feb87e2b53 tcp-wrappers is pretty obsolete, so stop suggesting we install a perl module for it https://github.com/webmin/webmin/issues/1749 2022-10-04 23:38:13 -07:00
Jamie Cameron
c28e60951b Merge branch 'master' of github.com:webmin/webmin 2022-10-04 20:52:34 -07:00
Jamie Cameron
90e164671f We are only reading named.conf, not writing here 2022-10-04 20:52:10 -07:00
iliajie
7d24ac3841 Fix indent 2022-10-04 23:02:57 +03:00
Jamie Cameron
b2798dbe89 Functions to get past playtime history 2022-10-02 22:51:43 -07:00
Jamie Cameron
fa465d0f76 Start of work on websockets proxy support 2022-10-02 21:23:31 -07:00
Jamie Cameron
0b95533a88 Extract and search inside zipped help files 2022-10-02 10:23:32 -07:00
Jamie Cameron
3a86b6f00d Merge branch 'master' of github.com:webmin/webmin 2022-10-02 09:55:24 -07:00
Jamie Cameron
d400db0684 Add param to check for help file in another directory 2022-10-02 09:54:04 -07:00
iliajie
f126fc3133 Fix to exclude sensors with unknown temperatures 2022-10-02 19:50:11 +03:00
iliajie
2eded6df95 Revert "Fix to exclude sensors with unknown temperatures"
This reverts commit f596d064b4.
2022-10-02 19:48:59 +03:00
iliajie
f596d064b4 Fix to exclude sensors with unknown temperatures 2022-10-02 19:48:16 +03:00
Jamie Cameron
391773274f Remove obsolete option to skip use of chkconfig 2022-10-01 18:11:01 -07:00
Jamie Cameron
52d34aea5d Remove un-used show_opts option 2022-10-01 17:59:06 -07:00
Jamie Cameron
8307d78c07 Links to init scripts are always symlinks 2022-10-01 17:44:24 -07:00
Jamie Cameron
0c22608c7a Remove support for ancient caldera-only daemons_dir feature 2022-10-01 17:35:46 -07:00
Jamie Cameron
7faf34961c Remove totally obsolete daemons_dir config option 2022-10-01 17:28:42 -07:00
Jamie Cameron
348cdd1a50 Merge branch 'master' of github.com:webmin/webmin 2022-10-01 17:08:02 -07:00
Jamie Cameron
4f8b96cfeb Remove start/stop messages option from configs, as it can be determined by the OS 2022-10-01 17:07:53 -07:00
iliajie
5ca8dea7a3 Fix missing semicolons 2022-10-01 18:53:37 +03:00
iliajie
c12e1c9c25 Fix to use foreign_defined sub instead 2022-10-01 18:50:21 +03:00
iliajie
d0ed52adf7 Fix to use foreign_defined sub instead 2022-10-01 18:29:39 +03:00
iliajie
261e5eaf40 Fix not to overflow input text field 2022-09-29 10:00:59 +03:00
iliajie
e1144a7398 Fix to replace config and help labels too (MySQL ⇾ MariaDB) 2022-09-29 09:58:14 +03:00
iliajie
1a6b280ab6 Fix to put it in one line 2022-09-29 09:08:44 +03:00
iliajie
fcd0c11ef9 Add support to modify help text using help_pre_load sub 2022-09-28 22:46:08 +03:00
iliajie
8fef42775b RHEL cover version range 2022-09-27 15:22:30 +03:00
Jamie Cameron
c18aaea427 CentOS 7.9 isn't covered by version range 6.0 to 7.0 2022-09-26 22:10:02 -07:00
Jamie Cameron
ed0d487fc5 Escape more inputs 2022-09-25 10:42:28 -07:00
Jamie Cameron
6075313456 In IPv6 mode, NAT source and destination should be v6 addresses https://sourceforge.net/p/webadmin/bugs/5451/ 2022-09-25 10:31:22 -07:00
Jamie Cameron
91ac918965 On FreeBSD, let's encrypt cert files are under /usr/local https://forum.virtualmin.com/t/lets-encrypt-validation-failed-on-freebsd/117015 2022-09-25 10:19:57 -07:00
Jamie Cameron
2142edce39 Escape descriptions and group names 2022-09-25 00:46:20 -07:00
Jamie Cameron
3dd1234c24 Add checkbox to control if key is kept 2022-09-24 11:52:16 -07:00
Jamie Cameron
90c23f6a1e Allow configuration of default user and group for new log files https://github.com/webmin/webmin/issues/1747 2022-09-23 23:37:44 -07:00
Jamie Cameron
7b1d70d620 Merge branch 'master' of github.com:webmin/webmin 2022-09-22 22:59:04 -07:00
Jamie Cameron
66849cbe55 Support the older primary zone type, which is the same as master https://sourceforge.net/p/webadmin/bugs/5584/ 2022-09-22 22:58:22 -07:00
Jamie Cameron
067dc65b5d Merge pull request #1744 from Elektronator/patch-1
Update save_profile.cgi
2022-09-20 21:18:09 -07:00
Elektronator
2108bb5732 Update save_profile.cgi
allows to create and burn (backup) files > 4GB and long filenames
2022-09-20 22:35:16 +02:00
Jamie Cameron
4d2c8979e9 ZIP up help files when packaging 2022-09-19 23:46:26 -07:00
Jamie Cameron
2bc7440cca Try all languages in the ZIP file 2022-09-19 23:27:20 -07:00
Jamie Cameron
aa0e40d260 Update some old technology references 2022-09-19 23:25:09 -07:00
Jamie Cameron
82100ca232 Deal with attachment filenames with / in them 2022-09-19 18:26:47 -07:00
Jamie Cameron
5868f8628d Work on support for ZIP format help pages 2022-09-18 23:59:01 -07:00
Jamie Cameron
200d597a28 Dev version bump 2022-09-18 19:24:19 -07:00
Jamie Cameron
5949e01c6b Don't show non-editable filesystem types by default 2022-09-18 19:23:59 -07:00
Jamie Cameron
4bbf2b13a3 Remove reference to un-used variable 2022-09-18 18:48:49 -07:00
Jamie Cameron
d7477336ac Use new UI library 2022-09-18 18:45:50 -07:00
Jamie Cameron
d0a04cafc3 update change log 2022-09-18 11:36:26 -07:00
Jamie Cameron
15f9f8f206 Re-read SSL certs on USR1 signal 2022-09-17 17:47:16 -07:00
Jamie Cameron
b45d55ac1b Further caching of SSL contexts 2022-09-17 17:32:28 -07:00
Jamie Cameron
2bc8def078 Use ed25519 key if supported https://github.com/webmin/webmin/issues/1739 2022-09-17 16:40:12 -07:00
Jamie Cameron
339ec2178a Merge branch 'master' of github.com:webmin/webmin 2022-09-17 16:31:37 -07:00
Jamie Cameron
7cb916d64d Clear out contexts hash on reload 2022-09-17 16:31:32 -07:00
Jamie Cameron
0e974b8fcc Merge pull request #1742 from webmin/dev/restart-nginx
Fix to restart Nginx in FCGId mode
2022-09-17 14:11:44 -07:00
Jamie Cameron
c7aa3c1875 Merge pull request #1743 from webmin/dev/consider-musthost-option
Fix to use correct URL name ; consider `musthost` option
2022-09-17 14:11:18 -07:00
iliajie
3747f930b0 Fix wording 2022-09-17 21:53:15 +03:00
iliajie
5e521515d9 Fix to use correct URL name ; consider musthost option 2022-09-17 21:46:57 +03:00
iliajie
f0c976a9c1 Fix to check if domains 2022-09-17 14:34:20 +03:00
Jamie Cameron
8d298821bc Merge branch 'master' of github.com:webmin/webmin 2022-09-17 00:17:42 -07:00
Jamie Cameron
9f1cea1af4 Deal with multipart emails with just one part that's HTML 2022-09-17 00:15:55 -07:00
iliajie
5c71893482 Fix to use is_under_directory 2022-09-16 21:52:37 +03:00
iliajie
003d04f214 Fix to restart Nginx in FCGId mode 2022-09-16 18:45:27 +03:00
iliajie
9d0ceb6e00 Update translations 2022-09-15 22:50:24 +03:00
Jamie Cameron
f3e1f347a5 Disallow trailing / in home dir https://github.com/webmin/webmin/issues/1740 2022-09-14 23:22:41 -07:00
iliajie
26138b82f5 Enforce SSL with HSTS header (optional) 2022-09-13 01:09:53 +03:00
iliajie
db3ade87cc Always unset HSTS when sending headers in non SSL mode
(most probably useless)
2022-09-13 00:05:50 +03:00
iliajie
8fd9b20139 Never add includeSubDomains 2022-09-13 00:04:37 +03:00
iliajie
3893e7a81f Fix redirects work when chaning modes (http vs https) 2022-09-13 00:01:32 +03:00
iliajie
c12cf25ecd Tell browser to unset HSTS policy to make non-SSL URL work 2022-09-12 14:52:03 +03:00
Jamie Cameron
6bd63a8a14 Call Virtualmin API for updating DNS records, so that lets encrypt works with cloudflare 2022-09-11 13:00:59 -07:00
Jamie Cameron
951ca59f52 Merge branch 'master' of github.com:webmin/webmin 2022-09-10 22:13:48 -07:00
Jamie Cameron
310b639015 Factor out SSL cert setup function 2022-09-10 20:35:14 -07:00
iliajie
9e89b7bc2e Fix error message styling 2022-09-07 01:03:03 +03:00
iliajie
d49eaccb60 Add support for cloning log rotate job 2022-09-06 14:59:12 +03:00
Jamie Cameron
0e23892ca5 Merge branch 'master' of github.com:webmin/webmin 2022-09-04 16:35:45 -07:00
Jamie Cameron
2d5175d160 Ignore empty auto lines https://forum.virtualmin.com/t/ipv6-allocation-problem-on-debian-11/116723/7 2022-09-04 16:34:02 -07:00
iliajie
52a83dd01d Update CHANGELOG.md 2022-08-31 21:50:31 +03:00
iliajie
8426c3b035 Fix missing origins and actions for more complex direct rules 2022-08-31 21:37:26 +03:00
iliajie
06483d9429 Fix bottom margin 2022-08-31 19:05:10 +03:00
iliajie
095d114425 Fix to add more space after the form 2022-08-31 15:50:43 +03:00
iliajie
9193423d3d Fix to remove ancient code
194c7b9b31 (r82659311)
2022-08-31 15:50:24 +03:00
iliajie
a3ec6756ea Fix to simplify the syntax
f6c8528412 (r82621322)
2022-08-30 21:15:57 +03:00
iliajie
f6c8528412 Add ability for compare_version_numbers API use friendlier syntax 2022-08-30 20:58:07 +03:00
Jamie Cameron
55c73f166d Merge pull request #1727 from unknown10777/master
Added translation in Webmin log
2022-08-27 11:50:04 -07:00
iliajie
ed4cea5323 Fix print error sub 2022-08-27 18:58:58 +03:00
iliajie
6d867abcea Fix typo 2022-08-27 18:45:00 +03:00
unknown10777
96d92ef3ff Update zh 2022-08-27 14:29:30 +08:00
unknown10777
11fbe3fd54 add translation 2022-08-27 14:11:16 +08:00
unknown10777
8664fbd78c added translation 2022-08-27 14:06:42 +08:00
Jamie Cameron
4effbdd722 Tag twofactor field 2022-08-23 19:48:57 -07:00
Jamie Cameron
9908785276 Merge pull request #1723 from TotalCaesar659/patch-1
Update URLs to HTTPS
2022-08-23 10:42:20 -07:00
TotalCaesar659
0cdae69937 Update URLs to HTTPS 2022-08-23 18:45:20 +03:00
iliajie
62678a42df Add theme update to changelog 2022-08-22 14:20:18 +03:00
iliajie
fa1c20fcf5 Update CHANGELOG.md (2.000) 2022-08-22 14:04:36 +03:00
Jamie Cameron
7a644042bd Support compressed help files 2022-08-21 20:28:17 -07:00
Jamie Cameron
61ae4fe1c2 Merge branch 'master' of github.com:webmin/webmin 2022-08-21 10:44:40 -07:00
Jamie Cameron
e3423aeeaa Autofill field for new group 2022-08-21 10:44:28 -07:00
Jamie Cameron
859c048d46 Merge pull request #1721 from webmin/dev/force-no-port-with-custom-host
Fix to allow no port with custom redirect host
2022-08-21 10:43:14 -07:00
iliajie
de0d57a13d Fix to allow no port with custom redirect host 2022-08-21 14:49:05 +03:00
iliajie
22cd52a451 Fix strict to go first 2022-07-20 20:49:46 +03:00
iliajie
7f61f2536d Merge branch 'master' into dev/gray-theme-replace 2022-07-20 20:45:50 +03:00
Ilia
d2cce7482b Simply replace Gray Framed with Virtualmin Framed theme 2022-06-07 15:03:54 +03:00
1254 changed files with 50883 additions and 4797 deletions

View File

@@ -1,5 +1,67 @@
## Changelog
#### 2.013 (January 19, 2023)
* Fix Authentic theme issue with error handling
* Fix Framed theme to respect selected mode in left menu
* Fix search bar in left menu in Framed theme
#### 2.012 (January 18, 2023)
* Fix to set the correct algorithm when setting up RNDC #1817
* Fix the loop bug when sourcing other network configs in Debian
* Fix to include all Debian network config files in backups
* Fix to stop doing expensive package re-fetch on upgrades
* Add support for defining hostname for WebSocket connection
* Add Debian 12 support
#### 2.011 (January 10, 2023)
* Add ability to set shell character encoding and set `TERM` environmental variable in the new Terminal module
* Add support for editing network interfaces in include files for Debian systems
* Add various improvements to the old good Framed Theme
* Fix to change Gray Framed Theme name to Framed Theme
* Fix to verify and close WebSocket session, if parent session was closed
* Fix to remove `RC4` from the list of strong ciphers
* Fix don't fail LDAP user or group deletion, if they have already been deleted
* Fix error handling in MySQL/MariaDB Database server module when executing SQL commands
* Fix adding an extra server attachment field and other bugs in Read User Mail module
* Fix the link to release notes for Rocky Linux
* Fix issues with freezing and thawing dynamic reverse zones in BIND DNS Server module
* Fix bugs for modules granting anonymous access
* Fix `mailbox_idle_check_interval` option related bugs in Dovecot module [sourceforge.net#5602](https://sourceforge.net/p/webadmin/bugs/5602/)
* Fix to use correct extension for package file when upgrading Webmin [webmin/authentic-theme#1633](https://github.com/webmin/authentic-theme/issues/1633)
* Update the Authentic theme to the latest version
#### 2.010 (November 27, 2022)
* Add a new Terminal module (interactive shell)
* Add a new `setup-repos.sh` script to setup Webmin repos
* Add to replace old Gray Theme with Virtualmin Framed Theme
* Add _systemd_ improvements
* Add proper support for openSUSE Leap and Tumbleweed
* Add Linux Lite support
* Fix connecting to external IPv6 LDAP server
* Fix self-signed certificate generation
* Fix setting hostname using `hostnamectl` command on _systemd_ systems
* Fix to exclude sensors with unknown temperatures
* Fix for FreeBSD to support Let's Encrypt certificates requests
* Fix to support attachment filenames with slash in them
#### 2.001 (September 18, 2022)
* Fix missing origins and action for direct rules in FirewallD module
* Removed the need for a full restart when updating SSH keys
* Improved the Javascript for redirects to HTTPS
#### 2.000 (August 21, 2022)
* Add to enforce HTTP Strict Transport Security (HSTS) policy in SSL enabled mode
* Add better `http` to `https` redirects when SSL is enabled
* Add support for installing multiple versions of Webmin on `systemd` systems
* Add support for AMD CPU thermisters #1714
* Add better support for Webmin minor (release) versions upgrades
* Add Webmin and Usermin configuration modules display minor (release) version
* Add Mint Linux support
* Add latest Authentic 20.00 [theme update](https://github.com/webmin/authentic-theme/releases/tag/20.00) with number of bug fixes
* Fix to also restart dependent services (i.e. `fail2ban`) upon `firewalld` restart
* Fix to preserve service state for Webmin and Usermin upon package upgrades (i.e. don't start stopped)
* Fix Bind module config incorrectly updated upon Webmin upgrades on CentOS 7
#### 1.999 (August 4, 2022)
* Fix to allow IPv6 addresses for slaves in BIND module
* Fix to send `HUP` signal on reload with `systemd`

View File

@@ -1,7 +1,7 @@
## Contents
* [Changelog](https://github.com/webmin/webmin/blob/master/CHANGELOG.md)
* [About](#about)
* [Installation](#installation)[<img src="https://github.com/webmin-devel/webmin/blob/master/media/download-23x14-stable.png?raw=true" title="Stable Versions">](http://webmin.com/download.html)[<img src="https://github.com/webmin-devel/webmin/blob/master/media/download-23x14-devel.png?raw=true" title="Development Versions">](http://webmin.com/devel.html)
* [Installation](#installation)[<img src="https://github.com/webmin-devel/webmin/blob/master/media/download-23x14-stable.png?raw=true" title="Stable Versions">](https://webmin.com/download.html)[<img src="https://github.com/webmin-devel/webmin/blob/master/media/download-23x14-devel.png?raw=true" title="Development Versions">](https://webmin.com/devel.html)
* [Documentation](#documentation)
* [Development](#development)
* [License](#license)
@@ -28,11 +28,11 @@ Perl 5.10 or higher.
## Installation
Webmin can be installed in two different ways:
1. By downloading a pre-built package, available for different distributions (CentOS, Fedora, SuSE, Mandriva, Debian, Ubuntu, Solaris and [other](http://www.webmin.com/support.html)) under [latest release assets](https://github.com/webmin/webmin/releases/latest) or from our [download page](http://webmin.com/download.html);
1. By downloading a pre-built package, available for different distributions (CentOS, Fedora, SuSE, Mandriva, Debian, Ubuntu, Solaris and [other](https://www.webmin.com/support.html)) under [latest release assets](https://github.com/webmin/webmin/releases/latest) or from our [download page](https://webmin.com/download.html);
<kbd>Note: It is highly recommended to [add repository](https://doxfer.webmin.com/Webmin/Installation) to your system for having automatic updates.</kbd>
2. By downloading, extracting [source file](https://prdownloads.sourceforge.net/webadmin/webmin-2.000.tar.gz), and running [_setup.sh_](http://www.webmin.com/tgz.html) script, with no arguments, which will setup to run it directly from this directory, or with a command-line argument, such as targeted directory.
<kbd>Note: If you are installing Webmin [on Windows](http://www.webmin.com/windows.html) system, you must run the command `perl setup.pl` instead. The Windows version depends on several programs, and modules that may not be part of the standard distribution. You will need _process.exe_ command, _sc.exe_ command, and _Win32::Daemon_ Perl module.</kbd>
2. By downloading, extracting [source file](https://prdownloads.sourceforge.net/webadmin/webmin-2.013.tar.gz), and running [_setup.sh_](https://www.webmin.com/tgz.html) script, with no arguments, which will setup to run it directly from this directory, or with a command-line argument, such as targeted directory.
<kbd>Note: If you are installing Webmin [on Windows](https://www.webmin.com/windows.html) system, you must run the command `perl setup.pl` instead. The Windows version depends on several programs, and modules that may not be part of the standard distribution. You will need _process.exe_ command, _sc.exe_ command, and _Win32::Daemon_ Perl module.</kbd>
## Documentation
Complete set of documentation for Webmin and all of its modules can be found at out [Wiki page](https://doxfer.webmin.com/Webmin/Main_Page).
@@ -41,7 +41,7 @@ Complete set of documentation for Webmin and all of its modules can be found at
### Lead developer
* [Jamie Cameron](http://www.webmin.com/about.html) [![](https://github.com/webmin-devel/webmin/blob/master/media/linkedin-15x15.png?raw=true)](https://www.linkedin.com/in/jamiecameron2)
* [Jamie Cameron](https://www.webmin.com/about.html) [![](https://github.com/webmin-devel/webmin/blob/master/media/linkedin-15x15.png?raw=true)](https://www.linkedin.com/in/jamiecameron2)
### Developers
* [Ilia Rostovtsev](https://github.com/iliajie)

File diff suppressed because one or more lines are too long

View File

@@ -1959,16 +1959,8 @@ my $miniserv = { };
my @anon = split(/\s+/, $miniserv->{'anonymous'} || "");
my ($user, $found) = &get_anonymous_access($path, $miniserv);
return 1 if ($found >= 0); # Already setup
# Grant access to the user and path
&lock_file(&get_miniserv_config_file());
$user ||= '';
push(@anon, "$path=$user");
$miniserv->{'anonymous'} = join(" ", @anon);
&put_miniserv_config($miniserv);
&unlock_file(&get_miniserv_config_file());
if (!$user) {
my $auser = grep { $_->{'name'} eq $user } &list_users();
if (!$auser) {
# Create a user if need be
$user = "anonymous";
my $uinfo = { 'name' => $user,
@@ -1980,16 +1972,23 @@ if (!$user) {
else {
# Make sure the user has the module
my ($uinfo) = grep { $_->{'name'} eq $user } &list_users();
$uinfo->{'modules'} ||= [];
if ($uinfo && &indexof($mod, @{$uinfo->{'modules'}}) < 0) {
$uinfo->{'modules'} ||= [];
push(@{$uinfo->{'modules'}}, $mod);
&modify_user($uinfo->{'name'}, $uinfo);
}
else {
print STDERR "Anonymous access is granted to user $user, but he doesn't exist!\n";
print STDERR "Anonymous access attempted to be granted to user $user, but it doesn't exist!\n";
}
}
# Grant access to the user and path
&lock_file(&get_miniserv_config_file());
push(@anon, "$path=$user");
$miniserv->{'anonymous'} = join(" ", @anon);
&put_miniserv_config($miniserv);
&unlock_file(&get_miniserv_config_file());
&reload_miniserv();
}

View File

@@ -354,6 +354,7 @@ sessions_actions=Optrede..
sessions_all=Alle sessies..
sessions_logouts=Toon ook afgemelde sessies..
sessions_state=staat
sessions_action=Aksies
sessions_this=Hierdie aanmelding
sessions_in=Aangemeld
sessions_out=Uitgeteken

View File

@@ -242,6 +242,7 @@ sessions_actions=أجراءات..
sessions_all=كل الجلسات..
sessions_logouts=اعرض أيضًا جلسات تسجيل الخروج..
sessions_state=حالة
sessions_action=أجراءات
sessions_this=هذا تسجيل الدخول
sessions_in=تسجيل الدخول
sessions_out=تسجيل الخروج

View File

@@ -354,6 +354,7 @@ sessions_actions=Дзеянні..
sessions_all=Усе сеансы..
sessions_logouts=Таксама паказаць выходныя сесіі.
sessions_state=Дзярж
sessions_action=Дзеянні
sessions_this=Гэта ўваход
sessions_in=Ўвайшлі ў
sessions_out=Выйшаў

View File

@@ -11,6 +11,7 @@ save_eunixname=Потребителското име '$1' не е потреби
sync_modify=Преименувайте съответстващия потребител на Webmin, когато потребител на Unix е преименуван.
sessions_all=Всички сесии..
sessions_action=Действия
sql_nocache0=Кеш връзки към база данни
sql_nocache1=Отворете нова връзка за всяко търсене

View File

@@ -11,6 +11,7 @@ save_eunixname=El nom d'usuari '$1' no és un usuari Unix, per la qual cosa no e
sync_modify=Canvieu el nom de l'usuari Webmin coincident quan es canvia el nom d'un usuari Unix.
sessions_all=Totes les sessions..
sessions_action=Accions
sql_nocache0=Connexions de memòria cau a la base de dades
sql_nocache1=Obriu una connexió nova per a cada cerca

View File

@@ -64,6 +64,7 @@ sessions_actions=Akce..
sessions_all=Všechny relace..
sessions_logouts=Zobrazit také odhlášené relace.
sessions_state=Stát
sessions_action=Akce
sessions_this=Toto přihlášení
sessions_in=Přihlášen
sessions_out=Odhlásit

View File

@@ -11,6 +11,7 @@ save_eunixname=Brugernavnet '$1' er ikke en Unix-bruger, og kan derfor ikke brug
sync_modify=Omdøb den matchende Webmin-bruger, når en Unix-bruger omdøbes.
sessions_all=Alle sessioner..
sessions_action=Handlinger
sql_nocache0=Cache-forbindelser til databasen
sql_nocache1=Åbn en ny forbindelse til hvert opslag

View File

@@ -1,6 +1,7 @@
sync_modify=Benennen Sie den passenden Webmin-Benutzer um, wenn ein Unix-Benutzer umbenannt wird.
sessions_all=Alle Sitzungen..
sessions_action=Aktionen
sql_nocache0=Cache-Verbindungen zur Datenbank
sql_nocache1=Öffnen Sie für jede Suche eine neue Verbindung

View File

@@ -11,6 +11,7 @@ save_eunixname=Το όνομα χρήστη '$1' δεν είναι χρήστη
sync_modify=Μετονομάστε τον αντίστοιχο χρήστη Webmin όταν μετονομάζεται ένας χρήστης Unix.
sessions_all=Όλες οι συνεδρίες..
sessions_action=Ενέργειες
sql_nocache0=Συνδέσεις προσωρινής μνήμης με βάση δεδομένων
sql_nocache1=Ανοίξτε μια νέα σύνδεση για κάθε αναζήτηση

View File

@@ -16,6 +16,7 @@ sessions_actions=Comportamiento..
sessions_all=Todas las sesiones..
sessions_logouts=Mostrar también sesiones cerradas.
sessions_state=Estado
sessions_action=Comportamiento
sessions_this=Este inicio de sesión
sessions_in=Conectado
sessions_out=Desconectado

View File

@@ -60,6 +60,7 @@ sessions_actions=Ekintzak..
sessions_all=Saio guztiak..
sessions_logouts=Erakutsi itxitako saioak ere..
sessions_state=Estatu
sessions_action=Ekintzak
sessions_this=Saioa hasiera
sessions_in=Saioa hasi
sessions_out=Saioa amaitu

View File

@@ -115,6 +115,7 @@ sessions_actions=اقدامات..
sessions_all=تمام جلسات..
sessions_logouts=همچنین جلسات ورود به سیستم را نشان دهید..
sessions_state=دولت
sessions_action=اقدامات
sessions_this=این ورود
sessions_in=وارد شده
sessions_out=خارج شد

View File

@@ -354,6 +354,7 @@ sessions_actions=Toiminnot..
sessions_all=Kaikki istunnot..
sessions_logouts=Näytä myös kirjautuneet istunnot..
sessions_state=Osavaltio
sessions_action=Toiminnot
sessions_this=Tämä kirjautuminen
sessions_in=Kirjautunut sisään
sessions_out=Kirjautunut ulos

View File

@@ -57,6 +57,7 @@ unix_header=Paramètres d'authentification utilisateur Unix
unix_utable=Utilisateurs Unix autorisés
sessions_all=Toutes les séances..
sessions_action=Actions
udeletes_jerr=Échec de l'ajout d'utilisateurs au groupe

View File

@@ -354,6 +354,7 @@ sessions_actions=פעולות..
sessions_all=כל המפגשים..
sessions_logouts=הראה גם הפעלות לא מחוברות..
sessions_state=מדינה
sessions_action=פעולות
sessions_this=כניסה זו
sessions_in=מחובר
sessions_out=התנתק

View File

@@ -65,6 +65,7 @@ sessions_actions=Akcije..
sessions_all=Sve sesije..
sessions_logouts=Prikaži i odjavljene sesije..
sessions_state=država
sessions_action=Radnje
sessions_this=Ova prijava
sessions_in=Prijavljeni
sessions_out=Odjavljen

View File

@@ -91,6 +91,7 @@ sessions_actions=Hozzászólások..
sessions_all=Minden ülés..
sessions_logouts=A kijelentkezett munkamenetek megjelenítése is
sessions_state=Állapot
sessions_action=Akciók
sessions_this=Ez a bejelentkezés
sessions_in=Bejelentkezve
sessions_out=Kilépett

View File

@@ -40,6 +40,7 @@ sessions_actions=Azioni..
sessions_all=Tutte le sessioni..
sessions_logouts=Mostra anche sessioni disconnesse.
sessions_state=Stato
sessions_action=Azioni
sessions_this=Questo login
sessions_in=Connesso
sessions_out=Disconnesso

View File

@@ -62,6 +62,7 @@ sessions_actions=行動..
sessions_all=すべてのセッション。
sessions_logouts=ログアウトしたセッションも表示します。
sessions_state=状態
sessions_action=行動
sessions_this=このログイン
sessions_in=ログイン済み
sessions_out=ログアウトしました

View File

@@ -62,6 +62,7 @@ sessions_actions=행위..
sessions_all=모든 세션..
sessions_logouts=로그 아웃 된 세션도 표시하십시오.
sessions_state=상태
sessions_action=행위
sessions_this=이 로그인
sessions_in=로그인
sessions_out=로그 아웃

View File

@@ -354,6 +354,7 @@ sessions_actions=Veiksmai..
sessions_all=Visi užsiėmimai..
sessions_logouts=Taip pat rodyti atsijungusius seansus..
sessions_state=Valstybė
sessions_action=Veiksmai
sessions_this=Šis prisijungimas
sessions_in=Prisijungęs
sessions_out=Atsijungęs

View File

@@ -354,6 +354,7 @@ sessions_actions=Darbības..
sessions_all=Visas sesijas..
sessions_logouts=Rādīt arī atteikšanās sesijas..
sessions_state=Valsts
sessions_action=Darbības
sessions_this=Šī pieteikšanās
sessions_in=Pieteicies
sessions_out=Izlogojies

View File

@@ -16,6 +16,7 @@ sessions_actions=Tindakan..
sessions_all=Semua sesi..
sessions_logouts=Juga tunjukkan sesi log keluar..
sessions_state=Negeri
sessions_action=Tindakan
sessions_this=Log masuk ini
sessions_in=Log masuk
sessions_out=Logged out

View File

@@ -354,6 +354,7 @@ sessions_actions=Azzjonijiet..
sessions_all=Is-sessjonijiet kollha..
sessions_logouts=Uri wkoll sessjonijiet illoggjati..
sessions_state=Stat
sessions_action=Azzjonijiet
sessions_this=Dan id-dħul
sessions_in=Dħalt
sessions_out=Dħalt

View File

@@ -39,6 +39,7 @@ sessions_actions=Acties..
sessions_all=Alle sessies..
sessions_logouts=Toon ook uitgelogde sessies..
sessions_state=Staat
sessions_action=Acties
sessions_this=Deze login
sessions_in=Ingelogd
sessions_out=Uitgelogd

View File

@@ -1,6 +1,7 @@
sync_modify=Gi nytt navn til den samsvarende Webmin-brukeren når en Unix-bruker får nytt navn.
sessions_all=Alle økter..
sessions_action=Handlinger
sql_nocache0=Cache-tilkoblinger til databasen
sql_nocache1=Åpne en ny forbindelse for hvert oppslag

View File

@@ -14,6 +14,7 @@ sessions_actions=Działania..
sessions_all=Wszystkie sesje...
sessions_logouts=Pokaż także wylogowane sesje.
sessions_state=Stan
sessions_action=działania
sessions_this=Ten login
sessions_in=Zalogowany
sessions_out=Wylogowano

View File

@@ -330,6 +330,7 @@ sessions_actions=Ações..
sessions_all=Todas as sessões..
sessions_logouts=Mostrar também sessões desconectadas.
sessions_state=Estado
sessions_action=Ações
sessions_this=Este login
sessions_in=Logado
sessions_out=Desconectado

View File

@@ -58,6 +58,7 @@ sessions_actions=Ações..
sessions_all=Todas as sessões..
sessions_logouts=Mostrar também sessões desconectadas.
sessions_state=Estado
sessions_action=Ações
sessions_this=Este login
sessions_in=Logado
sessions_out=Desconectado

View File

@@ -354,6 +354,7 @@ sessions_actions=Acțiuni..
sessions_all=Toate sesiunile..
sessions_logouts=Arată, de asemenea, sesiuni deconectate..
sessions_state=Stat
sessions_action=Acțiuni
sessions_this=Această autentificare
sessions_in=Conectat
sessions_out=Delogat

View File

@@ -62,6 +62,7 @@ sessions_actions=Действия..
sessions_all=Все сеансы..
sessions_logouts=Также показать сеансы выхода из системы.
sessions_state=состояние
sessions_action=Действия
sessions_this=Этот логин
sessions_in=Войти в систему
sessions_out=Вышли из

View File

@@ -107,6 +107,7 @@ sessions_actions=Akcia..
sessions_all=Všetky relácie..
sessions_logouts=Zobraziť aj odhlásené relácie.
sessions_state=Štát
sessions_action=Akcie
sessions_this=Toto prihlásenie
sessions_in=Prihlásený
sessions_out=Odhlasený

View File

@@ -354,6 +354,7 @@ sessions_actions=Ukrepi..
sessions_all=Vse seje..
sessions_logouts=Prikaži tudi odjavne seje.
sessions_state=Država
sessions_action=Dejanja
sessions_this=Ta prijava
sessions_in=Prijavljeni
sessions_out=Odjavljeni

View File

@@ -62,6 +62,7 @@ sessions_actions=Handlingar..
sessions_all=Alla sessioner..
sessions_logouts=Visa även utloggade sessioner..
sessions_state=stat
sessions_action=Åtgärder
sessions_this=Den här inloggningen
sessions_in=Inloggad
sessions_out=Utloggad

View File

@@ -354,6 +354,7 @@ sessions_actions=การดำเนินการ..
sessions_all=ทุกวาระ..
sessions_logouts=แสดงเซสชันการออกจากระบบด้วย..
sessions_state=สถานะ
sessions_action=การกระทำ
sessions_this=เข้าสู่ระบบนี้
sessions_in=เข้าสู่ระบบ
sessions_out=ออกจากระบบ

View File

@@ -123,6 +123,7 @@ sessions_actions=Hareketler..
sessions_all=Tüm oturumlar..
sessions_logouts=Oturumu kapatılmış oturumları da göster..
sessions_state=Durum
sessions_action=Hareketler
sessions_this=Bu giriş
sessions_in=Giriş
sessions_out=Çıkış yapıldı

View File

@@ -349,6 +349,7 @@ sessions_actions=Дії..
sessions_all=Всі сеанси..
sessions_logouts=Показати також сеанси виходу з системи..
sessions_state=Держава
sessions_action=Дії
sessions_this=Це логін
sessions_in=Увійшли в
sessions_out=Вийшли з системи

View File

@@ -354,6 +354,7 @@ sessions_actions=عمل..
sessions_all=تمام سیشنز..
sessions_logouts=لاگ آؤٹ سیشن بھی دکھائیں..
sessions_state=حالت
sessions_action=اعمال
sessions_this=یہ لاگ ان
sessions_in=لاگ ان
sessions_out=لاگ آؤٹ

View File

@@ -354,6 +354,7 @@ sessions_actions=Hành động..
sessions_all=Tất cả các phiên..
sessions_logouts=Cũng hiển thị các phiên đăng xuất..
sessions_state=Tiểu bang
sessions_action=Hành động
sessions_this=Thông tin đăng nhập này
sessions_in=Đăng nhập
sessions_out=Đăng xuất

View File

@@ -163,6 +163,7 @@ sessions_actions=动作..
sessions_all=所有会议..
sessions_logouts=同时显示注销的会话。
sessions_state=州
sessions_action=行动
sessions_this=此登录名
sessions_in=登录
sessions_out=登出

View File

@@ -141,6 +141,7 @@ sessions_actions=動作..
sessions_all=所有會議..
sessions_logouts=還顯示註銷的會話。
sessions_state=州
sessions_action=行動
sessions_this=此登錄名
sessions_in=登錄
sessions_out=登出

View File

@@ -0,0 +1,23 @@
show_list=0
httpd_dir=/srv/www
httpd_conf=/etc/apache2/httpd.conf
mime_types=/etc/apache2/mime.types
httpd_path=/usr/sbin/httpd
start_cmd=systemctl start apache2
stop_cmd=systemctl stop apache2
apply_cmd=systemctl restart apache2
show_order=0
max_servers=100
test_config=1
test_manual=0
test_always=0
test_apachectl=1
apachectl_path=/usr/sbin/apache2ctl
virt_file=/etc/apache2/vhosts.d
pid_file=/run/httpd.pid
defines_file=/etc/sysconfig/apache2
defines_name=APACHE_SERVER_FLAGS
auto_mods=1
show_names=0
allow_virtualmin=0
format_config=1

View File

@@ -0,0 +1,4 @@
at_style=linux
at_dir=/var/spool/atjobs
allow_file=/etc/at.allow
deny_file=/etc/at.deny

View File

@@ -3,6 +3,7 @@
BEGIN { push(@INC, ".."); };
use WebminCore;
use JSON::PP;
&init_config();
use Time::Local;
if (&foreign_check("node-groups")) {

View File

@@ -5,8 +5,6 @@ $trust_unknown_referers = 1;
require './bacula-backup-lib.pl';
&ReadParse();
use JSON::PP;
# Input sanitization
die "Illegal input" if ($in{'job'} and $in{'job'} !~ /^\d+\z/);

View File

@@ -149,6 +149,6 @@ C</etc/webmin>
=head1 LICENSE AND COPYRIGHT
Copyright 2022 Jamie Cameron <jcameron@webmin.com>
Copyright 2018 Jamie Cameron <jcameron@webmin.com>
Joe Cooper <joe@virtualmin.com>

View File

@@ -114,6 +114,6 @@ Name of the user to disable two-factor authentication for.
=head1 LICENSE AND COPYRIGHT
Copyright 2022 Jamie Cameron <jcameron@webmin.com>
Copyright 2018 Jamie Cameron <jcameron@webmin.com>
Joe Cooper <joe@virtualmin.com>
Ilia Rostovtsev <ilia@virtualmin.com>

View File

@@ -164,5 +164,5 @@ domain.tld)
=head1 LICENSE AND COPYRIGHT
Copyright 2022 Jamie Cameron <jcameron@webmin.com>
Copyright 2018 Jamie Cameron <jcameron@webmin.com>
Joe Cooper <joe@virtualmin.com>

View File

@@ -199,5 +199,5 @@ Display the description of the option from the module C<config.info> file, inste
=head1 LICENSE AND COPYRIGHT
Copyright 2022 Jamie Cameron <jcameron@webmin.com>
Copyright 2018 Jamie Cameron <jcameron@webmin.com>
Joe Cooper <joe@virtualmin.com>

View File

@@ -258,7 +258,7 @@ Set new user password. Using this option may be unsecure.
=head1 LICENSE AND COPYRIGHT
Copyright 2022 Jamie Cameron <jcameron@webmin.com>
Copyright 2018 Jamie Cameron <jcameron@webmin.com>
Joe Cooper <joe@virtualmin.com>
Ilia Rostovtsev <ilia@virtualmin.com>

View File

@@ -172,7 +172,7 @@ sub root
=head1 LICENSE AND COPYRIGHT
Copyright 2022 Jamie Cameron <jcameron@webmin.com>
Copyright 2018 Jamie Cameron <jcameron@webmin.com>
Joe Cooper <joe@virtualmin.com>
Ilia Rostovtsev <ilia@virtualmin.com>

View File

@@ -181,5 +181,5 @@ already exist in the file, and was added)
=head1 LICENSE AND COPYRIGHT
Copyright 2022 Jamie Cameron <jcameron@webmin.com>
Copyright 2018 Jamie Cameron <jcameron@webmin.com>
Joe Cooper <joe@virtualmin.com>

View File

@@ -431,7 +431,7 @@ Returns Webmin and other modules and themes versions installed (only those for w
=head1 LICENSE AND COPYRIGHT
Copyright 2022 Jamie Cameron <jcameron@webmin.com>
Copyright 2018 Jamie Cameron <jcameron@webmin.com>
Joe Cooper <joe@virtualmin.com>
Ilia Rostovtsev <ilia@virtualmin.com>

View File

@@ -27,7 +27,7 @@ foreach my $v (@views) {
push(@zones, &find("zone", $conf));
foreach my $z (@zones) {
my $tv = &find_value("type", $z->{'members'});
next if ($tv ne "master" && $tv ne "hint");
next if ($tv ne "master" && $tv ne "primary" && $tv ne "hint");
my $file = &find_value("file", $z->{'members'});
next if (!$file);
if (&is_raw_format_records(&make_chroot($file))) {

View File

@@ -35,7 +35,7 @@ my @extra_reverse = split(/\s+/, $config{'extra_reverse'} || '');
our %is_extra = map { $_, 1 } (@extra_forward, @extra_reverse);
our %access = &get_module_acl();
my $zone_names_cache = "$module_config_directory/zone-names";
my $zone_names_version = 3;
my $zone_names_version = 4;
my @list_zone_names_cache;
my $slave_error;
my %lines_count;
@@ -131,7 +131,7 @@ my $file = $_[0] || $config{'named_conf'};
if (!defined($get_config_parent_cache{$file})) {
my $conf = &get_config();
if (!defined($lines_count{$file})) {
my $lref = &read_file_lines($file);
my $lref = &read_file_lines($file, 1);
$lines_count{$file} = @$lref;
}
$get_config_parent_cache{$file} =
@@ -802,7 +802,8 @@ if ($ipv6) {
$rev = &net_to_ip6int($addr, 4*($i+1));
$rev =~ s/\.$//g;
foreach my $z (@zl) {
if (lc($z->{'name'}) eq $rev && $z->{'type'} eq 'master') {
if (lc($z->{'name'}) eq $rev &&
($z->{'type'} eq 'master' || $z->{'type'} eq 'primary')) {
# found the reverse master domain
$revconf = $z;
last DOMAIN;
@@ -822,7 +823,7 @@ else {
$zname =~ s/^(\d+)\/(\d+)\.//;
if ((lc($zname) eq $rev ||
lc($zname) eq "$rev.") &&
$z->{'type'} eq "master") {
($z->{'type'} eq "master" || $z->{'type'} eq "primary")) {
# found the reverse master domain
$revconf = $z;
last DOMAIN;
@@ -870,7 +871,7 @@ DOMAIN: for(my $i=1; $i<@parts; $i++) {
my $typed;
if ((lc($z->{'name'}) eq $fwd ||
lc($z->{'name'}) eq "$fwd.") &&
$z->{'type'} eq "master") {
($z->{'type'} eq "master" || $z->{'type'} eq "primary")) {
# Found the forward master!
$fwdconf = $z;
last DOMAIN;
@@ -981,7 +982,7 @@ sub can_edit_reverse
return $access{'reverse'} || &can_edit_zone($_[0]);
}
# record_input(zone-name, view, type, file, origin, [num], [record],
# record_input(zone-name, view, type, file, origin, [num], [&record],
# [new-name, new-value])
# Display a form for editing or creating a DNS record
sub record_input
@@ -1058,8 +1059,12 @@ else {
$ttl = $rec{'ttl'} || '';
$ttlunit = "";
}
my $defmsg = $text{'default'};
if ($rec{'realttl'}) {
$defmsg .= " ($rec{'realttl'})";
}
print &ui_table_row($text{'edit_ttl'},
&ui_opt_textbox("ttl", $ttl, 8, $text{'default'})." ".
&ui_opt_textbox("ttl", $ttl, 8, $defmsg)." ".
&time_unit_choice("ttlunit", $ttlunit));
# Value(s) fields
@@ -2195,7 +2200,7 @@ return undef;
sub before_editing
{
my ($zone) = @_;
if (!$freeze_zone_count{$zone->{'name'}}) {
if ($zone->{'dynamic'} && !$freeze_zone_count{$zone->{'name'}}) {
my ($out, $ok) = &try_cmd(
"freeze ".quotemeta($zone->{'name'})." IN ".
quotemeta($zone->{'view'} || ""));
@@ -2225,15 +2230,21 @@ sub restart_zone
{
my ($dom, $view) = @_;
my ($out, $ex);
my $zone = &get_zone_name($dom, $view);
my $dyn = $zone && $zone->{'dynamic'};
if ($view) {
# Reload a zone in a view
&try_cmd("freeze ".quotemeta($dom)." IN ".quotemeta($view)) if ($dyn);
$out = &try_cmd("reload ".quotemeta($dom)." IN ".quotemeta($view));
$ex = $?;
&try_cmd("thaw ".quotemeta($dom)." IN ".quotemeta($view)) if ($dyn);
}
else {
# Just reload one top-level zone
&try_cmd("freeze ".quotemeta($dom)) if ($dyn);
$out = &try_cmd("reload ".quotemeta($dom));
$ex = $?;
&try_cmd("thaw ".quotemeta($dom)) if ($dyn);
}
if ($out =~ /not found/i) {
# Zone is not known to BIND yet - do a total reload
@@ -2451,9 +2462,13 @@ if ($changed || !$znc{'version'} ||
foreach my $z (@vz) {
my $type = &find_value("type", $z->{'members'});
next if (!$type);
$type = lc($type);
my $file = &find_value("file", $z->{'members'});
my $up = &find("update-policy", $z->{'members'});
my $au = &find("allow-update", $z->{'members'});
my $dynamic = $up || $au ? 1 : 0;
$znc{"zone_".($n++)} = join("\t", $z->{'value'},
$z->{'index'}, $type, $v->{'value'}, $file);
$z->{'index'}, $type, $v->{'value'}, $dynamic, $file);
$files{$z->{'file'}}++;
}
$znc{"view_".($n++)} = join("\t", $v->{'value'}, $v->{'index'});
@@ -2462,10 +2477,14 @@ if ($changed || !$znc{'version'} ||
foreach my $z (&find("zone", $conf)) {
my $type = &find_value("type", $z->{'members'});
next if (!$type);
$type = lc($type);
my $file = &find_value("file", $z->{'members'});
$file ||= ""; # slaves and other types with no file
my $up = &find("update-policy", $z->{'members'});
my $au = &find("allow-update", $z->{'members'});
my $dynamic = $up || $au ? 1 : 0;
$znc{"zone_".($n++)} = join("\t", $z->{'value'},
$z->{'index'}, $type, "*", $file);
$z->{'index'}, $type, "*", $dynamic, $file);
$files{$z->{'file'}}++;
}
@@ -2496,12 +2515,13 @@ if (scalar(@list_zone_names_cache)) {
my (@rv, %viewidx);
foreach my $k (keys %znc) {
if ($k =~ /^zone_(\d+)$/) {
my ($name, $index, $type, $view, $file) =
split(/\t+/, $znc{$k}, 5);
my ($name, $index, $type, $view, $dynamic, $file) =
split(/\t+/, $znc{$k}, 6);
push(@rv, { 'name' => $name,
'type' => $type,
'index' => $index,
'view' => !$view || $view eq '*' ? undef : $view,
'dynamic' => $dynamic,
'file' => $file });
}
elsif ($k =~ /^view_(\d+)$/) {
@@ -2529,7 +2549,7 @@ undef(@list_zone_names_cache);
unlink($zone_names_cache);
}
# get_zone_name(index|name, [viewindex|"any"])
# get_zone_name(index|name, [viewindex|view-name|"any"])
# Returns a zone cache object, looked up by name or index
sub get_zone_name
{
@@ -2541,7 +2561,8 @@ foreach my $z (@zones) {
if ($z->{$field} eq $key &&
($viewidx eq 'any' ||
$viewidx eq '' && !defined($z->{'viewindex'}) ||
$viewidx ne '' && $z->{'viewindex'} == $_[1])) {
$viewidx =~ /^\d+$/ && $z->{'viewindex'} == $viewidx ||
$viewidx ne '' && $z->{'view'} eq $viewidx)) {
return $z;
}
}
@@ -4304,7 +4325,7 @@ my %cache;
&read_file($dnssec_expiry_cache, \%cache);
my $changed = 0;
foreach my $z (&list_zone_names()) {
next if ($z->{'type'} ne 'master');
next if ($z->{'type'} ne 'master' && $z->{'type'} ne 'primary');
my ($t, $e);
if ($cache{$z->{'name'}}) {
($t, $e) = split(/\s+/, $cache{$z->{'name'}});
@@ -4382,5 +4403,21 @@ my $kvspace = " " x length("@kvalues");
return join(" ", @kvalues) . " " . join("\n$kvspace ", splice(@krvalues, 6));
}
# redirect_url(type, [zone], [view])
# Returns the URL of the appropriate edit_*.cgi page
sub redirect_url
{
my ($type, $zone, $view) = @_;
my $r = $type eq "master" || $type eq "primary" ? "edit_master.cgi" :
$type eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi";
if ($zone) {
$r .= "?zone=".&urlize($zone);
if ($view) {
$r .= "&view=".&urlize($view);
}
}
return $r;
}
1;

View File

@@ -33,7 +33,8 @@ elsif ($cgi eq 'edit_text.cgi' || $cgi eq 'edit_soa.cgi' ||
$cgi eq 'edit_zonekey.cgi' || $cgi eq 'edit_recs.cgi' ||
$cgi eq 'edit_record.cgi') {
# Find a master zone
my ($z) = grep { $_->{'type'} eq 'master' &&
my ($z) = grep { ($_->{'type'} eq 'master' ||
$_->{'type'} eq 'primary') &&
&can_edit_zone($_) } &list_zone_names();
return 'none' if (!$z);
my $rv = 'zone='.$z->{'zone'}.

View File

@@ -52,7 +52,7 @@ print &ui_table_row($text{'net_listen'}, $ltable, 3);
# Source address for queries
my $src = &find("query-source", $mems);
my $srcstr = join(" ", $src->{'values'});
my $srcstr = $src ? join(" ", @{$src->{'values'}}) : "";
my ($sport, $saddr);
$sport = $1 if ($srcstr =~ /port\s+(\d+)/i);
$saddr = $1 if ($srcstr =~ /address\s+([0-9\.]+)/i);

View File

@@ -35,7 +35,7 @@ if (!$? && $out !~ /failed/) {
print &ui_form_start("save_rndc.cgi", "post");
my $ex = -s $config{'rndc_conf'};
print &text($ex ? 'rndc_rusure' : 'rndc_rusure2',
"<tt>$config{'rndc_conf'}</tt>"),"<p>\n";
"<tt>$config{'rndc_conf'}</tt>"),"<br>\n";
print &ui_submit($text{'rndc_ok'});
print &ui_form_end();

View File

@@ -44,10 +44,6 @@ keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf
dnssectools_rollrec=/var/named/system.rollrec
dnssectools_keydir=/var/named/dtkeys
dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1

View File

@@ -47,10 +47,6 @@ keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf
dnssectools_rollrec=/var/named/system.rollrec
dnssectools_keydir=/var/named/dtkeys
dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1

View File

@@ -44,10 +44,6 @@ keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf
dnssectools_rollrec=/var/named/system.rollrec
dnssectools_keydir=/var/named/dtkeys
dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1

View File

@@ -44,10 +44,6 @@ keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf
dnssectools_rollrec=/var/named/system.rollrec
dnssectools_keydir=/var/named/dtkeys
dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1

View File

@@ -47,10 +47,6 @@ keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf
dnssectools_rollrec=/var/named/system.rollrec
dnssectools_keydir=/var/named/dtkeys
dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1

View File

@@ -44,10 +44,6 @@ keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf
dnssectools_rollrec=/var/named/system.rollrec
dnssectools_keydir=/var/named/dtkeys
dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1

View File

@@ -0,0 +1,50 @@
soa_style=1
named_path=/usr/sbin/named
named_conf=/etc/named.conf
show_list=1
records_order=0
max_zones=50
rev_def=0
support_aaaa=1
allow_comments=0
allow_wild=1
allow_long=0
master_ttl=1
whois_cmd=whois
short_names=0
updserial_def=0
updserial_on=1
updserial_man=1
ndc_cmd=ndc
forwardzonefilename_format=ZONE.hosts
reversezonefilename_format=ZONE.rev
start_cmd=systemctl start named
restart_cmd=systemctl reload named
stop_cmd=systemctl stop named
pid_file=/var/run/named/named.pid
chroot=
rev_must=0
ipv6_mode=1
allow_underscore=1
by_view=0
confirm_zone=1
confirm_rec=0
no_chroot=1
relative_paths=0
rndc_cmd=rndc
auto_chroot=
no_pid_chroot=0
soa_start=0
rndc_conf=/etc/rndc.conf
rndcconf_cmd=rndc-confgen
largezones=0
slave_dir=/var/lib/named/slave
master_dir=/var/lib/named/master
checkzone=named-checkzone
keygen=dnssec-keygen
signzone=dnssec-signzone
checkconf=named-checkconf
other_slaves=1
force_random=0
spf_record=0
dnssec_info=1

View File

@@ -47,10 +47,6 @@ keygen=dnssec-keygen
tmpl_dnssec=0
dnssec_period=21
tmpl_dnssec_dt=1
dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf
dnssectools_rollrec=/var/named/system.rollrec
dnssectools_keydir=/var/named/dtkeys
dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid
force_random=0
spf_record=0
dnssec_info=1

View File

@@ -25,6 +25,7 @@ $access{'delete'} || &error($text{'master_edeletecannot'});
my $rev = ($zconf->{'value'} =~ /in-addr\.arpa/i ||
$zconf->{'value'} =~ /\.$ipv6revzone/i);
my $type = &find("type", $zconf->{'members'})->{'value'};
$type = 'master' if ($type eq 'primary');
if (!$in{'confirm'} && $config{'confirm_zone'}) {
# Ask the user if he is sure ..
&ui_print_header(undef, $text{'delete_title'}, "",

View File

@@ -24,7 +24,7 @@ if ($key) {
foreach my $k (@keyfiles) {
&lock_file($k);
}
&delete_dnssec_key($zone, 1);
&delete_dnssec_key($zone, $in{'keep'});
foreach my $k (@keyfiles) {
&unlock_file($k);
}

View File

@@ -22,6 +22,7 @@ my $typedesc = $text{"recs_$in{'type'}"} || $in{'type'};
# Show form for adding a record
my $type = $zone->{'type'};
$type = 'master' if ($type eq 'primary');
my $file = $zone->{'file'};
my $form = 0;
my $shown_create_form;
@@ -182,14 +183,15 @@ for(my $i=0; $i<@_; $i++) {
if ($in{'type'} eq 'ALL') {
push(@cols, $r->{'type'});
}
if ($r->{'ttl'} && $r->{'ttl'} =~ /(\d+)([SMHDW]?)/i) {
$r->{'ttl'} =~ s/S//i;
if ($r->{'ttl'} =~ s/M//i) { $r->{'ttl'} *= 60; }
if ($r->{'ttl'} =~ s/H//i) { $r->{'ttl'} *= 3600; }
if ($r->{'ttl'} =~ s/D//i) { $r->{'ttl'} *= 86400; }
if ($r->{'ttl'} =~ s/W//i) { $r->{'ttl'} *= 604800; }
my $ttl = $r->{'realttl'};
if ($ttl && $ttl =~ /(\d+)([SMHDW]?)/i) {
$ttl =~ s/S//i;
if ($ttl =~ s/M//i) { $ttl *= 60; }
if ($ttl =~ s/H//i) { $ttl *= 3600; }
if ($ttl =~ s/D//i) { $ttl *= 86400; }
if ($ttl =~ s/W//i) { $ttl *= 604800; }
}
push(@cols, $r->{'ttl'} ? &html_escape($r->{'ttl'}) : $text{'default'});
push(@cols, $ttl ? &html_escape($ttl) : $text{'default'});
for(my $j=0; $j<@hmap; $j++) {
my $v;
if ($in{'type'} eq "RP" && $j == 0) {

View File

@@ -34,6 +34,5 @@ print &ui_table_row(undef, &ui_checkbox("soa", $config{'updserial_on'},
print &ui_table_end();
print &ui_form_end($access{'ro'} ? [ ] : [ [ undef, $text{'save'} ] ]);
&ui_print_footer(($tv eq "master" ? "edit_master.cgi" :
$tv eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi").
"?zone=$in{'zone'}&view=$in{'view'}", $text{'master_return'});
&ui_print_footer(&redirect_url($tv, $in{'zone'}, $in{'view'}),
$text{'master_return'});

View File

@@ -75,7 +75,8 @@ if (@keyrecs) {
print &ui_hr();
print &ui_buttons_start();
print &ui_buttons_row("disable_zonekey.cgi", $text{'zonekey_disable'},
$text{'zonekey_disabledesc'},
$text{'zonekey_disabledesc'}."<br>\n".
&ui_checkbox("keep", 1, $text{'zonekey_keep'}, 1),
&ui_hidden("view", $in{'view'}).
&ui_hidden("zone", $in{'zone'}));

View File

@@ -23,7 +23,7 @@ my %taken;
my %nets;
foreach my $z (@zones) {
my $type = &find_value("type", $z->{'members'});
next if ($type ne "master");
next if ($type ne "master" && $type ne "primary");
my $file = &find_value("file", $z->{'members'});
my @recs = &read_zone_file($file, $z->{'value'});
foreach my $r (@recs) {

View File

@@ -29,9 +29,5 @@ if ($? || $out =~ /failed|not found|error/i) {
&error(&text('restart_endc', "<tt>$out</tt>"));
}
&webmin_log("freeze", $dom);
my $tv = $zone->{'type'};
&redirect(($tv eq "master" ? "edit_master.cgi" :
$tv eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi").
"?zone=$in{'zone'}&view=$in{'view'}");
&redirect(&redirect_url($zone->{'type'}, $in{'zone'}, $in{'view'}));

View File

@@ -187,6 +187,7 @@ elsif (@zones && (!@views || !$config{'by_view'})) {
my $t = $z->{'type'};
next if (!$t);
$t = "delegation" if ($t eq "delegation-only");
$t = "master" if ($t eq "primary");
my $zn = $v eq "." ? "<i>$text{'index_root'}</i>"
: &ip6int_to_net(&arpa_to_ip($v));
if ($z->{'view'}) {
@@ -350,6 +351,8 @@ elsif (@zones) {
foreach my $z (@zv) {
my $v = $z->{'name'};
my $t = $z->{'type'};
$t = "delegation" if ($t eq "delegation-only");
$t = "master" if ($t eq "primary");
my $zn = $v eq "." ? "<i>$text{'index_root'}</i>"
: &ip6int_to_net(&arpa_to_ip($v));
push(@zlinks, "edit_$t.cgi?zone=$z->{'name'}".

View File

@@ -1282,6 +1282,7 @@ zonekey_expandzone=Show public and private zone-key details ..
zonekey_noprivate=However, Webmin could not find the private key associated with the zone, and so will not be able to re-sign it.
zonekey_eprivate=The private key associated with this zone could not be read : $1
zonekey_disable=Remove Key
zonekey_keep=Keep existing key if DNSSEC is re-enabled?
zonekey_disabledesc=Removes the DNSSEC key from this zone, and all signing records. Once this is done, you will be able to generate a new key.
zonekey_sign=Sign Zone
zonekey_signdesc=Immediately re-sign this zone, so that any changes to records made manually will be included in the signing records.

View File

@@ -46,9 +46,10 @@ if (@servers) {
print &ui_columns_end();
print &ui_links_row(\@links);
print &ui_form_end([ [ "delete", $text{'slaves_delete'} ] ]);
print "<p>";
}
else {
print "<b>$text{'slaves_none'}</b><p>\n";
print "<p>$text{'slaves_none'}</p>\n";
}
# Get all Webmin servers and groups
@@ -108,7 +109,7 @@ if (@addservers || @groups) {
print &ui_form_end([ [ undef, $text{'slaves_ok'} ] ]);
}
else {
print "<b>",&text('slaves_need', '../servers/'),"</b><p>\n";
print "<p>",&text('slaves_need', '../servers/'),"</p>\n";
}
&ui_print_footer("", $text{'index_return'});

View File

@@ -62,7 +62,7 @@ $in{'ttl_def'} || $in{'ttl'} =~ /^\d+$/ ||
foreach my $zi (@zones) {
print &text('rmass_doing', "<tt>$zi->{'name'}</tt>"),"<br>\n";
if ($zi->{'type'} ne 'master') {
if ($zi->{'type'} ne 'master' && $zi->{'type'} ne 'primary') {
# Skip - not a master zone
print $text{'umass_notmaster'},"<p>\n";
next;

View File

@@ -28,7 +28,7 @@ $in{'name_def'} || $in{'name'} || &error($text{'rdmass_ename'});
foreach my $zi (@zones) {
print &text('rdmass_doing', "<tt>$zi->{'name'}</tt>"),"<br>\n";
if ($zi->{'type'} ne 'master') {
if ($zi->{'type'} ne 'master' && $zi->{'type'} ne 'primary') {
# Skip - not a master zone
print $text{'umass_notmaster'},"<p>\n";
next;

View File

@@ -63,7 +63,7 @@ elsif ($in{'type'} eq 'ttl') {
foreach my $zi (@zones) {
print &text('umass_doing', "<tt>$zi->{'name'}</tt>"),"<br>\n";
if ($zi->{'type'} ne 'master') {
if ($zi->{'type'} ne 'master' && $zi->{'type'} ne 'primary') {
# Skip - not a master zone
print $text{'umass_notmaster'},"<p>\n";
next;

View File

@@ -120,7 +120,9 @@ while($line = <$FILE>) {
close($FILE);
# parse into data structures
my $i = 0; my $num = 0;
my $i = 0;
my $num = 0;
my $currttl = undef;
while($i < @tok) {
if ($tok[$i] =~ /^\$origin$/i) {
# $ORIGIN directive (may be relative or absolute)
@@ -179,6 +181,7 @@ while($i < @tok) {
'defttl' => $tok[$i++],
'type' => '' };
push(@rv, $defttl);
$currttl = $defttl->{'defttl'};
}
elsif ($tok[$i] =~ /^\$(\S+)/i) {
# some other special directive
@@ -279,6 +282,7 @@ while($i < @tok) {
}
$dir{'values'} = \@values;
$dir{'eline'} = $lnum[$i-1];
$dir{'realttl'} = $dir{'ttl'} || $currttl;
# Work out canonical form, and maybe use it
my $canon = $dir{'name'};

View File

@@ -25,7 +25,7 @@ my $errcount = 0;
my $donecount = 0;
foreach my $z (@zones) {
# Get the key
next if ($z->{'type'} ne 'master');
next if ($z->{'type'} ne 'master' && $z->{'type'} ne 'primary');
my $zonefile = &get_zone_file($z);
my $krfile = "$zonefile".".krf";
my $dom = $z->{'members'} ? $z->{'values'}->[0] : $z->{'name'};

View File

@@ -28,14 +28,6 @@ if ($access{'remote'}) {
}
&webmin_log("apply");
my $redir_targ = ($in{'type'} eq "master" ? "edit_master.cgi" :
$in{'type'} eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi");
my $zone;
if ($in{'zone'}) {
$zone = "?zone=$in{'zone'}";
if ($in{'view'}) {
$zone .= "&view=$in{'view'}";
}
}
&redirect($zone && $in{'return'} ? "$redir_targ$zone" : "");
&redirect($in{'zone'} && $in{'return'} ?
&redirect_url($in{'type'}, $in{'zone'}, $in{'view'}) : "");

View File

@@ -17,7 +17,4 @@ my $err = &restart_zone($zone->{'name'}, $zone->{'view'});
&error($err) if ($err);
&webmin_log("apply", $zone->{'name'});
my $tv = $zone->{'type'};
my $redir_targ = ($tv eq "master" ? "edit_master.cgi" :
$tv eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi");
&redirect($redir_targ . "?zone=$in{'zone'}&view=$in{'view'}");
&redirect(&redirect_url($zone->{'type'}, $in{'zone'}, $in{'view'}));

View File

@@ -76,12 +76,14 @@ if ($in{'delete'}) {
($in{'type'} eq "A" ||
$in{'type'} eq "AAAA" &&
&expandall_ip6($in{'oldvalue0'}) eq &expandall_ip6(&ip6int_to_net($orevrec->{'name'})))) {
&before_editing($orevconf);
&lock_file(&make_chroot($orevrec->{'file'}));
&delete_record($orevrec->{'file'} , $orevrec);
&lock_file(&make_chroot($orevfile));
my @orrecs = &read_zone_file($orevfile, $orevconf->{'name'});
&bump_soa_record($orevfile, \@orrecs);
&sign_dnssec_zone_if_key($orevconf, \@orrecs);
&after_editing($orevconf);
}
# Update forward
@@ -92,12 +94,14 @@ if ($in{'delete'}) {
(!$ipv6 && &arpa_to_ip($in{'oldname'}) eq $ofwdrec->{'values'}->[0] ||
$ipv6 && &expandall_ip6(&ip6int_to_net($in{'oldname'})) eq &expandall_ip6($ofwdrec->{'values'}->[0])) &&
$fulloldvalue0 eq $ofwdrec->{'name'}) {
&before_editing($ofwdconf);
&lock_file(&make_chroot($ofwdrec->{'file'}));
&delete_record($ofwdrec->{'file'}, $ofwdrec);
&lock_file(&make_chroot($ofwdfile));
my @ofrecs = &read_zone_file($ofwdfile, $ofwdconf->{'name'});
&bump_soa_record($ofwdfile, \@ofrecs);
&sign_dnssec_zone_if_key($ofwdconf, \@ofrecs);
&after_editing($ofwdconf);
}
&redirect("edit_recs.cgi?zone=$in{'zone'}&view=$in{'view'}&type=$in{'redirtype'}&sort=$in{'sort'}");
@@ -158,7 +162,8 @@ else {
# Is this address already in use? Search all domains
# to find out..
foreach my $z (@zl) {
next if ($z->{'type'} ne "master");
next if ($z->{'type'} ne "master" &&
$z->{'type'} ne "primary");
next if ($z->{'name'} =~ /in-addr\.arpa/i);
my $file = $z->{'file'};
my @frecs = &read_zone_file($file, $z->{'name'});
@@ -180,7 +185,8 @@ else {
# Is this address already in use? Search all domains
# to find out..
foreach my $z (@zl) {
next if ($z->{'type'} ne "master");
next if ($z->{'type'} ne "master" &&
$z->{'type'} ne "primary");
next if ($z->{'name'} =~ /\.$ipv6revzone/i);
my $file = $z->{'file'};
my @frecs = &read_zone_file($file, $z->{'name'});
@@ -601,6 +607,8 @@ else {
# Updating the reverse record. Either the name, address
# or both may have changed. Furthermore, the reverse record
# may now be in a different file!
&before_editing($orevconf);
&before_editing($revconf);
&lock_file(&make_chroot($orevfile));
&lock_file(&make_chroot($revfile));
my @orrecs = &read_zone_file($orevfile, $orevconf->{'name'});
@@ -632,17 +640,21 @@ else {
&bump_soa_record($orevfile, \@orrecs);
&sign_dnssec_zone_if_key($orevconf, \@orrecs);
}
&after_editing($revconf);
&after_editing($orevconf);
}
elsif ($in{'rev'} && !$orevrec && $revconf && !$revrec &&
&can_edit_reverse($revconf)) {
# we don't handle the old reverse domain but handle the new
# one.. create a new reverse record
&before_editing($revconf);
&lock_file(&make_chroot($revfile));
my @rrecs = &read_zone_file($revfile, $revconf->{'name'});
&create_record($revfile, $rname,
$ttl, "IN", "PTR", $fullname, $in{'comment'});
&bump_soa_record($revfile, \@rrecs);
&sign_dnssec_zone_if_key($revconf, \@rrecs);
&after_editing($revconf);
}
my $ipv6;
@@ -654,6 +666,8 @@ else {
&expandall_ip6($ofwdrec->{'values'}->[0]) &&
$fulloldvalue0 eq $ofwdrec->{'name'}) {
# Updating the forward record
&before_editing($ofwdfile);
&before_editing($fwdfile);
&lock_file(&make_chroot($ofwdfile));
&lock_file(&make_chroot($fwdfile));
my @ofrecs = &read_zone_file($ofwdfile, $ofwdconf->{'name'});
@@ -688,6 +702,8 @@ else {
&bump_soa_record($ofwdfile, \@ofrecs);
&sign_dnssec_zone_if_key($ofwdconf, \@ofrecs);
}
&after_editing($fwdfile);
&after_editing($ofwdfile);
}
}
&bump_soa_record($in{'file'}, \@recs);

View File

@@ -35,7 +35,8 @@ if ($options) {
$port = &find_value("default-port", $options->{'members'});
}
$port ||= 953;
my $algorithm = &find("algorithm", $rconf);
my $algorithm = &find_value("algorithm", $rkey->{'members'}) ||
&find_value("algorithm", $rconf);
$algorithm ||= "hmac-md5";
# Add the key to named.conf

View File

@@ -60,7 +60,7 @@ foreach my $v (@views) {
}
foreach my $z (@zoneconfs) {
my $type = &find_value("type", $z->{'members'});
if ($type eq "master") {
if ($type eq "master" || $type eq "primary") {
$zmap{$z->{'value'}} = $z;
}
}
@@ -88,18 +88,6 @@ foreach my $s (@add) {
next;
}
# Check for needed Webmin versions
my $rver = &remote_foreign_call($s, "bind8", "get_webmin_version");
if ($rver < 1.202) {
print &text('add_eversion', $s->{'host'}, 1.202),"<p>\n";
next;
}
if ($s->{'bind8_view'} && $s->{'bind8_view'} =~ /\s/ &&
$rver < 1.422) {
print &text('add_eversion2', $s->{'host'}, 1.422),"<p>\n";
next;
}
# Check for non-IP name
if (&check_ipaddress($s->{'host'}) && $in{'name_def'}) {
print &text('add_eipaddr', $s->{'host'}),"<p>\n";

View File

@@ -14,14 +14,6 @@ $access{'apply'} || &error($text{'start_ecannot'});
my $err = &start_bind();
&error($err) if ($err);
&webmin_log("start");
my $redir_targ = ($in{'type'} eq "master" ? "edit_master.cgi" :
$in{'type'} eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi");
my $zone;
if ($in{'zone'}) {
$zone = "?zone=$in{'zone'}";
if ($in{'view'}) {
$zone .= "&view=$in{'view'}";
}
}
&redirect($zone && $in{'return'} ? "$redir_targ$zone" : "");
&redirect($in{'zone'} && $in{'return'} ?
&redirect_url($in{'type'}, $in{'zone'}, $in{'view'}) : "");

View File

@@ -8,14 +8,6 @@ $access{'apply'} || &error($text{'stop_ecannot'});
$err = &stop_bind();
&error($err) if ($err);
&webmin_log("stop");
my $redir_targ = ($in{'type'} eq "master" ? "edit_master.cgi" :
$in{'type'} eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi");
my $zone;
if ($in{'zone'}) {
$zone = "?zone=$in{'zone'}";
if ($in{'view'}) {
$zone .= "&view=$in{'view'}";
}
}
&redirect($zone && $in{'return'} ? "$redir_targ$zone" : "");
&redirect($in{'zone'} && $in{'return'} ?
&redirect_url($in{'type'}, $in{'zone'}, $in{'view'}) : "");

View File

@@ -30,8 +30,4 @@ if ($? || $out =~ /failed|not found|error/i) {
}
&webmin_log("thaw", $dom);
my $tv = $zone->{'type'};
&redirect(($tv eq "master" ? "edit_master.cgi" :
$tv eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi").
"?zone=$in{'zone'}&view=$in{'view'}");
&redirect(&redirect_url($zone->{'type'}, $in{'zone'}, $in{'view'}));

View File

@@ -36,6 +36,5 @@ else {
}
}
&ui_print_footer(($tv eq "master" ? "edit_master.cgi" :
$tv eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi").
"?zone=$in{'zone'}&view=$in{'view'}", $text{'master_return'});
&ui_print_footer(&redirect_url($tv, $in{'zone'}, $in{'view'}),
$text{'master_return'});

View File

@@ -34,7 +34,5 @@ print &ui_table_start(&text('whois_header', "<tt>".&html_escape($pcmd)."</tt>"),
print &ui_table_row(undef, "<pre>".&html_escape($out)."</pre>", 2);
print &ui_table_end();
&ui_print_footer(($tv eq "master" ? "edit_master.cgi" :
$tv eq "forward" ? "edit_forward.cgi" : "edit_slave.cgi").
"?zone=$in{'zone'}&view=$in{'view'}", $text{'master_return'});
&ui_print_footer(&redirect_url($tv, $in{'zone'}, $in{'view'}),
$text{'master_return'});

View File

@@ -5,58 +5,39 @@ do 'burner-lib.pl';
# Output HTML for editing security options for the acl module
sub acl_security_form
{
print "<tr> <td><b>$text{'acl_create'}</b></td> <td>\n";
printf "<input type=radio name=create value=1 %s> $text{'yes'}\n",
$_[0]->{'create'} ? 'checked' : '';
printf "<input type=radio name=create value=0 %s> $text{'no'}</td>\n",
$_[0]->{'create'} ? '' : 'checked';
my ($o) = @_;
print &ui_table_row($text{'acl_create'},
&ui_yesno_radio("create", $o->{'create'}));
print "<td><b>$text{'acl_edit'}</b></td> <td>\n";
printf "<input type=radio name=edit value=1 %s> $text{'yes'}\n",
$_[0]->{'edit'} ? 'checked' : '';
printf "<input type=radio name=edit value=0 %s> $text{'no'}</td> </tr>\n",
$_[0]->{'edit'} ? '' : 'checked';
print &ui_table_row($text{'acl_edit'},
&ui_yesno_radio("edit", $o->{'edit'}));
print "<tr> <td><b>$text{'acl_global'}</b></td> <td>\n";
printf "<input type=radio name=global value=1 %s> $text{'yes'}\n",
$_[0]->{'global'} ? 'checked' : '';
printf "<input type=radio name=global value=0 %s> $text{'no'}</td>\n",
$_[0]->{'global'} ? '' : 'checked';
print "</tr>\n";
print &ui_table_row($text{'acl_global'},
&ui_yesno_radio("global", $o->{'global'}));
print "<tr> <td valign=top><b>$text{'acl_profiles'}</b></td>\n";
print "<td colspan=3>\n";
printf "<input type=radio name=all value=1 %s> %s\n",
$_[0]->{'profiles'} eq "*" ? "checked" : "", $text{'acl_all'};
printf "<input type=radio name=all value=0 %s> %s<br>\n",
$_[0]->{'profiles'} eq "*" ? "" : "checked", $text{'acl_sel'};
print "<select name=profiles multiple size=5>\n";
local $p;
local %can = map { $_, 1 } split(/\s+/, $_[0]->{'profiles'});
foreach $p (&list_profiles()) {
printf "<option value=%s %s>%s (%s)\n",
$p->{'id'}, $can{$p->{'id'}} ? "selected" : "",
$text{'index_type'.$p->{'type'}},
$p->{'type'} == 1 ? $p->{'iso'} :
$p->{'type'} == 4 ? $p->{'sdesc'} : $p->{'source_0'}.
($p->{'source_1'} ? ", ..." : "");
}
print "</select></td> </tr>\n";
print &ui_table_row($text{'acl_profiles'},
&ui_radio("all", $o->{'profiles'} eq '*' ? 1 : 0,
[ [ 1, $text{'acl_all'} ],
[ 0, $text{'acl_sel'}."<br>" ] ])."\n".
&ui_select("profiles",
[ split(/\s+/, $o->{'profiles'}) ],
[ map { [ $_->{'id'}, $text{'index_type'.$_->{'type'}} ] }
&list_profiles() ],
5, 1), 3);
print "<tr> <td><b>$text{'acl_dirs'}</b></td> <td colspan=2>\n";
printf "<input name=dirs size=40 value='%s'></td> </tr>\n",
$_[0]->{'dirs'};
print &ui_table_row($text{'acl_dirs'},
&ui_textbox("dirs", $o->{'dirs'}, 60), 3);
}
# acl_security_save(&options)
# Parse the form for security options for the acl module
sub acl_security_save
{
$_[0]->{'create'} = $in{'create'};
$_[0]->{'edit'} = $in{'edit'};
$_[0]->{'global'} = $in{'global'};
$_[0]->{'profiles'} = $in{'all'} ? "*" :
join(" ", split(/\0/, $in{'profiles'}));
$_[0]->{'dirs'} = $in{'dirs'};
my ($o) = @_;
$o->{'create'} = $in{'create'};
$o->{'edit'} = $in{'edit'};
$o->{'global'} = $in{'global'};
$o->{'profiles'} = $in{'all'} ? "*" : join(" ", split(/\0/, $in{'profiles'}));
$o->{'dirs'} = $in{'dirs'};
}

View File

@@ -130,6 +130,7 @@ if ($in{'burn'} || $in{'test'}) {
$iso = $config{'temp'} ? "$config{'temp'}/burner.iso"
: &tempname("burner.iso");
local $cmd = "$config{'mkisofs'} -graft-points -o $iso";
$cmd .= " -iso-level 3";
$cmd .= " -J" if ($profile->{'joliet'});
$cmd .= " --netatalk" if ($profile->{'netatalk'});
$cmd .= " --cap" if ($profile->{'cap'});

View File

@@ -0,0 +1,9 @@
cfrun_hosts=
cfd_conf=
cfengine_conf=
cfd=/usr/sbin/cfd
cfengine_dir=/etc/cfengine
cfrun=/usr/sbin/cfrun
cfengine=/usr/sbin/cfengine
start_cmd=systemctl start cfengine
stop_cmd=systemctl stop cfengine

View File

@@ -58,7 +58,7 @@ foreach $o (@lang_order_list) {
}
# Call any config pre-load function
if (&foreign_func_exists($module, 'config_pre_load')) {
if (&foreign_defined($module, 'config_pre_load')) {
&foreign_call($module, "config_pre_load", \%info, \@info_order);
&foreign_call($module, "config_pre_load", \%einfo);
}
@@ -281,7 +281,7 @@ if ($section) {
# prevent changing behaviour of a module
if (&foreign_exists($module) &&
&foreign_require($module) &&
&foreign_func_exists($module, 'config_pre_load')) {
&foreign_defined($module, 'config_pre_load')) {
&foreign_call($module, "config_pre_load", \%info, \@info_order);
}

View File

@@ -0,0 +1,10 @@
find_pid_command=ps auwwwx | grep NAME | grep -v grep | awk '{ print $2 }'
path=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
ld_env=LD_LIBRARY_PATH
passwd_file=/etc/shadow
passwd_uindex=0
passwd_pindex=1
passwd_cindex=2
passwd_mindex=4
by_view=0
tempdelete_days=7

Some files were not shown because too many files have changed in this diff Show More