Commit Graph

12641 Commits

Author SHA1 Message Date
Phil Davis
4e34cdf3bf Handle release number in installer
This code just looked wrong. It was considering 10.1-RELEASE-p6 to be release number "1" and comparing it to "9".
These changes to do what it seems to intend. This will make that UFS+J stuff appear, if that is of any consequence.
2015-03-23 08:15:57 -03:00
Chris Buechler
c1ef7cfb41 Add option for wireless standard "auto", to omit "mode" entirely from ifconfig. This shouldn't be necessary, but specifying mode has proven to trigger driver problems that don't exist if it's left unspecified (such as FreeBSD PR 198680). Chosing "auto" fixes ath(4) BSS mode issues otherwise preventing it from connecting. 2015-03-18 23:52:46 -05:00
Jared Dillard
57413f7fd1 change the location of jquery-ui images in each theme's css file 2015-03-18 14:07:43 -05:00
Phil Davis
5372d26d9d Cleanup code path when adding a new user
1) Only attempt to delete the oldusername if it actually was non-empty - at the moment errors are logged in the system log when adding a new user, because the code was trying to delete the user name "".
2) Call local_user_set() first to create (change, whatever) the user record. This makes the user record exist for a new user. Then call local_user_set_groups() to sort out what groups the user should be in or not in. The existing code would fail to add a new user to the specified group/s because local_user_set_groups() was called too early, before the user actually existed.

Typical system log errors from the old code:
Mar 18 17:10:31 	php-fpm[9542]: /system_usermanager.php: Tried to remove user but got user pw instead. Bailing.
Mar 18 17:10:31 	php-fpm[9542]: /system_usermanager.php: The command '/usr/sbin/pw groupmod admins -g 1999 -M '0,2003,2006,2008' 2>&1' returned exit code '67', the output was 'pw: user `2008' does not exist'

From looking at the code history, I think this has been this way for a long time, not a new bug at all.

Discussed in forum: https://forum.pfsense.org/index.php?topic=90700.msg501766#msg501766
2015-03-18 10:58:58 -03:00
Phil Davis
b13f7a8c58 Do not allow VLAN tag zero
At the moment you can make a VLAN with tag 0. The input validation does not catch it because when $_POST['tag'] = "0" that evaluates to false by PHP.
Always make the checks on 'tag' value whenever the 'tag' key is set at all. If the (required) 'tag' key is not set, then that is already checked for by do_input_validation().
2015-03-18 10:57:31 -03:00
Phil Davis
06144727b0 pfSsh.php readline function return value
This just looks wrong. But I guess the code path never comes through here because function readline() already exists in the environment of this script.
2015-03-16 08:16:07 -03:00
Chris Buechler
ae2db699d6 txpower was disabled for good reason it would appear, it triggers syntax errors in some configurations. Disable it again since it's been disabled for years, and comment out the user-facing config portion for now since it doesn't do anything. Ticket #4516 2015-03-13 03:15:10 -05:00
Chris Buechler
9b65fdd0ce Apply WME input validation to all modes, not just hostap. Ticket #4516 2015-03-13 03:07:50 -05:00
Chris Buechler
e4909df4de Default to 11ng if an option hasn't been configured. Previously we let the browser pick the first in the list (the first the card reported as available), which ended up being 802.11b. Ticket #4516 2015-03-13 02:54:30 -05:00
Chris Buechler
771ca94f69 Default to WPA2, AES for new wireless interface configs. Ticket #4516 2015-03-13 02:29:56 -05:00
Chris Buechler
4d84e32362 Auto-size the interface box on the bridge edit page. 2015-03-13 01:19:47 -05:00
Chris Buechler
1cabb79c28 touch up interfaces.php text 2015-03-13 00:15:05 -05:00
Chris Buechler
33e85f856a Require WPA PSK where WPA-PSK is enabled. Clean up some other text. Ticket #4516 2015-03-12 23:43:31 -05:00
Chris Buechler
3c53b38b03 clean up input errors text 2015-03-12 23:25:51 -05:00
Chris Buechler
ec253cd500 Fix up text, remove "only for Atheros" since the option is only shown if a compatible card exists. 2015-03-12 21:01:42 -05:00
Chris Buechler
f5fb15b928 "Auto" channel with hostap doesn't work correctly at the moment, force choosing a specific channel with hostap mode for now. 2015-03-12 20:56:31 -05:00
Chris Buechler
80271fb308 add more wireless validation. Ticket #4516 2015-03-12 18:53:31 -05:00
Chris Buechler
22ec33b9d6 Add more validation for wireless config settings. Ticket #4516 2015-03-12 18:22:25 -05:00
Chris Buechler
bda6c6bf4f Add more input validation for wireless parameters. Ticket #4516 2015-03-12 16:48:36 -05:00
Chris Buechler
b00b6c066c Touch up wifi text 2015-03-12 15:07:47 -05:00
Chris Buechler
3d67c650ef clean up unique IDs text a bit. 2015-03-11 22:00:43 -05:00
Renato Botelho
934c88ee95 Proper fix #4443, do not unset carp entry when content differ, also set correct real interface and use subnet to check IP protocol 2015-03-11 20:51:46 -03:00
Renato Botelho
c8a4eb4056 Save vip interface and subnet to use to delete old vips from secondary nodes. Fixes #4446 2015-03-11 16:02:59 -03:00
Renato Botelho
b01d44a3f3 Revert "Use a consistent variable name here. related to Ticket #4446"
This reverts commit 0e7954b8a3.
2015-03-11 16:02:59 -03:00
Chris Buechler
87ca92d03c add granular control of state timeouts. Ticket #4509 2015-03-11 13:22:17 -05:00
Renato Botelho
8304fb462a Remove BEAST protection option since default cipher is now good and works with hifn cards 2015-03-11 14:04:38 -03:00
Phil Davis
1b2af00760 Fix password box cursor position
Similar to
dedc40f7de
The password field shows the little lock icon, but the text input area
starts over the top of the icon and as I type in the field the password
"dots" go over the lock icon in each of these data entry places.
Changing the field name/id to not be "password" but to be "passwordfld",
"passwordfld1" "passwordfld2" and the like fixes it. Something does not
like the field being called just "password".
In interfaces.php I also changed the field "username" to be
"ppp_username". This standardized it to work in a similar way to
pppoe_username pptp_username fields. It looks easier to understand for
me.
2015-03-11 08:29:49 -03:00
Phil Davis
90c39f4e3f Pencil symbols
These are places in the GUI where the cursor sits not in the far left
side of the input box and there is odd-looking white space to the left
of the cursor. Normally there would be a little input graphic in the
white space to the left of the cursor (a pencil, a computer screen, a
lock symbol...)
This change makes the pencil be displayed in all those places.
2015-03-11 08:28:33 -03:00
Chris Buechler
bf57f6ba35 update description after adaptive start/end default change. 2015-03-11 01:37:10 -05:00
Chris Buechler
0e7954b8a3 Use a consistent variable name here. related to Ticket #4446 2015-03-10 19:00:06 -05:00
Chris Buechler
eb6495c3b1 Don't enable interfaces_use by default. Add checkbox to enable on Advanced
tab, in case there are scenarios where it's desirable. Ticket #4341

Conflicts:
	etc/inc/vpn.inc
2015-03-10 17:20:11 -05:00
Ermal LUÇI
ea7ad4c25f Fixes #4427 Correct traffic shaper wizard to properly save and use Voip provided settings 2015-03-10 21:46:53 +01:00
Ermal LUÇI
d3fa306d0a Fixes #4427 Correct traffic shaper wizard to properly save and use Voip provided settings 2015-03-10 21:45:18 +01:00
Ermal LUÇI
457d9c3275 Fixes #4446 Correct ipalias removal on top of carp during configuration sync. 2015-03-09 18:52:13 +01:00
jim-p
36dbc14aaa Allow reassignment from PPP types to DHCP. From testing, it appears to work OK, this input validation appears to be outdated.
If there is some edge case that this catches, perhaps it needs to be a more specific test.
2015-03-09 10:35:26 -04:00
jim-p
bf4ea211dd Add missing 'break' statement that broke switching from a PPP type to 'none'. 2015-03-09 10:22:53 -04:00
Phil Davis
aab23249c4 DNS Forwarder Host Override Edit make the pencil symbols appear
In most places in the GUI a little pencil symbol appears before text input fields. For example it already appears for the Host, Domain and Description fields in this very form when you "Enter additional names for this host."
But in the main 4 fields of this form, the pencil does not display.
This fixes it to be the same as elsewhere.
I guess this is the "standard" supposed to be used. If so, then I will find the other places where class="formfld unknown" has the "unknown" missing.
2015-03-09 07:01:10 -03:00
Phil Davis
39dff8e2f9 Fix password box in diag_authentication
In 2.2 when I go to Diagnostics->Authentication the password field shows the little lock icon, but the text input area starts over the top of the icon and as I type in the field the password "dots" go over the lock icon.
This does not happen in 2.1.5 - the password entry cursor sits after the lock icon. This problem is also not evident on most other password entry fields in 2.2
I stared at it for a while, then saw that in other places the password field is not literally called "password", so I thought what the heck, I will change the field name - it fixed the display issue!!! What???
Anyway, this fixes the display issue on my system. If someone knows really why having the field name/id="password" is a problem then they could fix the underlying reason - but this works around whatever is the issue.
If you think this is an OK fix then I will also find the couple of other places swhere this happens and make the same "fix".
2015-03-09 07:00:01 -03:00
k-paulius
478188c221 Add missing opening bracket 2015-03-09 06:55:20 -03:00
Chris Buechler
f973985c84 Update help to current config structure, touch up text while here. Fixes #4492 2015-03-08 00:44:06 -06:00
Chris Buechler
ede74d31d6 Check for console="comconsole* rather than just *comconsole* in loader.conf, so it doesn't match just having comconsole_speed in loader.conf. Ticket #4464 2015-03-07 14:18:23 -06:00
jim-p
7ba5aeebef Expand CARP demotion error, add button to reset demotion status. 2015-03-06 15:00:59 -05:00
Renato Botelho
99572c5380 Remove multiple spaces from dns_split as a seatbelt, also fix the message since field is expected to be space separated and not comma. Ticket #4418 2015-03-06 11:29:35 -03:00
Chris Buechler
9b23ce9088 touch up text 2015-03-06 03:35:47 -06:00
Chris Buechler
95f1227e3b fix up text 2015-03-05 22:12:48 -06:00
Chris Buechler
1bfb95f38d Don't save config if input validation fails. Add input validation preventing "Harden DNSSEC Data" from being enabled if DNSSEC support isn't enabled. 2015-03-05 21:40:23 -06:00
Chris Buechler
73cdd9f0ca Remove the harden-glue option entirely and hard code it to yes. Ticket #4402 2015-03-05 19:35:59 -06:00
jim-p
5ec3f37fcf Encode and check values for filtering variables in diag_logs_filter.php 2015-03-05 10:08:52 -05:00
jim-p
033663df45 Do not render the services_unbound_acls page with an invalid ID. 2015-03-05 10:00:56 -05:00
jim-p
108be9a529 Stricter validation and encoding for traffic shaper queues. 2015-03-05 09:55:00 -05:00