summaryrefslogtreecommitdiffstats
path: root/src/etc/inc
Commit message (Collapse)AuthorAgeFilesLines
* Fix #7257: Use pfSense-upgrade to look for new versionsRenato Botelho2017-02-141-7/+15
|
* Revert "Add privs to control display of notices"Renato Botelho2017-02-131-8/+0
| | | | | | Fix #7051 This reverts commit 04665e78537906f7375668ca665cba17f95a4864.
* Revert "Use cached groups in get_user_privileges"Renato Botelho2017-02-131-33/+10
| | | | This reverts commit c7c79905d3e0fd01172d373a15a1d0d77a5728e8.
* Use cached groups in get_user_privilegesPhil Davis2017-02-131-10/+33
| | | | (cherry picked from commit 7abc3f992e5dd5bff53495844ce944163d6d1d9b)
* Fix ldap_get_groups return value when downPhil Davis2017-02-131-2/+2
| | | | | | | | | | | In some places ldap_get_groups has: ``` return memberof; ``` It should have the "$" in front, so it will return the $memberof array (that is empty when this happens). This causes issues for callers that expect to have a return value that is either false, an empty array, or an array of the groups. (cherry picked from commit 0241b34f1a33c3ae83fdf817c8c374b10775335a)
* 5th trylukehamburg2017-02-101-1/+1
| | | | | | - change $do_ping default value to 'true' (which emulates the previous default behavior) to avoid any unexpected results (cherry picked from commit 20cf8d8e20fa28c16e86ce0d91e57e4d78427d26)
* 4th attempt!lukehamburg2017-02-101-3/+7
| | | | | | - Reworked based on recent comments from @rbgarga (cherry picked from commit c516cb287a78f7b05459e7fcba410f443d8eb8af)
* 3rd try!lukehamburg2017-02-101-9/+8
| | | | | | - incorporate suggestions from @rbgarga with slight modification (cherry picked from commit 6c2f093000b05285546e81dd1a578fc9b573b72b)
* 2nd try. . .lukehamburg2017-02-101-11/+14
| | | | | | | | | | | /etc/inc/util.inc: - arp_get_mac_by_ip() updated to support IPv6 - attempt at code streamline /usr/local/www/services_dhcp_edit.php: - streamline code, now just a simple call to arp_get_mac_by_ip() (cherry picked from commit dd83f869b79a858bd74c7a8bb4adcd49217445b0)
* Add a function to format and return plain text output showing the gateway ↵jim-p2017-02-101-0/+43
| | | | status, for use by a shell script and status.php. Ticket #7046
* Require Name field in ShaperPhil Davis2017-02-101-4/+4
| | | | (cherry picked from commit 40dcb4b61a2c1213a0b3e213c78fddac845a0117)
* implement AWS API v4 signingJason D. McCormick2017-02-072-29/+17
| | | | (cherry picked from commit ac5ee07ee1daef2f43e728895290ca6d11efe0f3)
* commit initial fix; need to add hooks for region to zone idJason D. McCormick2017-02-072-14/+50
| | | | (cherry picked from commit cb5961d1fa64a45cbec5ef5d677b57f8d62f50b5)
* Simplify logicRenato Botelho2017-02-031-14/+11
|
* Set ntp gps mode for pgrmf even if no other modes are being set.jskyboo2017-02-031-1/+1
| | | | (cherry picked from commit 821110e8ff76564c23783c554fc89cd9458683ac)
* Add to NTP GPS processing of PGRMF sentencejskyboo2017-02-031-0/+3
| | | | (cherry picked from commit 6924a2bf34a70cd33284a28ca3575f33f9834375)
* get_service_status_icon fix description_state formatPhil Davis2017-02-011-59/+3
| | | | | | | | | If "description_state" is requested here, there are too many "%s" substitutions in the string for sprintf(). Also, to help translators, number all the "%s" substitutions. Then translators can rearrange the text and variable order if they need to. I removed the commented-out get_service_control_GET_links() while I am here, because it also contained sprintf() strings that had multiple "%s" substitutions. So I had found it when searching for lines containing multiple "%s". Might as well remove it "in the next version" as the comment says. (cherry picked from commit b3119a61c8f5841f92e2c1fe945f90d9e98a843c)
* Remove unused broken functionsdoktornotor2017-02-011-47/+0
| | | | | Not sure what was the idea here, but these are not used anywhere, do nothing as they immediately call ```return false;``` plus the second one is also misnamed. (cherry picked from commit edba33b5a567ab8c9d4827fa26a25bd9649e3fac)
* Misc cleanups at get_pkg_info()stilez2017-01-301-34/+34
| | | | | | | | * rename function args to be clearer what they do ($local_only was quite ambiguous, at first sight it could mean any of: "don't update local catalog copy", "only check local catalog copy", or "only report local installed pkgs") * merge nested if () conditions * refactor minor code stuff * rewrite explanatory comment (cherry picked from commit 04daf8b1f016e17bede4ad00db46f2855d3e7c1f)
* fix copy/paste - I think!stilez2017-01-301-32/+6
| | | | (cherry picked from commit 2f633b526075b2ed5e0e160ef6f0d025b509bd70)
* use wrapped version of pkg info -e insteadstilez2017-01-301-5/+31
| | | | (cherry picked from commit e5f96a2cb3c0cad0c828148bd7b8d45c130a9b17)
* get_pkg_info() fallback using pkg info if no local copy of repo catalog ↵stilez2017-01-301-6/+34
| | | | | | | | | | | | | | | (resubmit) Resubmit of PR #3157 with fix. The issue in #3157 was that `pkg info` and `pkg search`, undocumented in man pages, seem to handle things differently if no packages match the pattern string. `pkg search` gives an error "No packages match [$pkgs]", whereas `pkg search` doesn't give an error. I didn't come across this because it's not stated in the man pages for pkg info, and because I tested it with a bare install but at least one pkg, while @NYOB used it on a bare install. The fix which I've tested and seems to work nicely, is to test using `pkg info -e` whether the pkg info call will hit a "no packages exist" issue or not. If `pkg info -e` returns 0 then it's safe as there's at least one matching pkg (any other errors are allowed to occur and be detected as usual). If it returns anything else, then there's no matching pkgs, so the main `pkg info` is skipped leaving $out and other variables at the correct values they need anyway, showing a null match/none found. For details of the underlying issue being fixed, and the issue that this resubmit fixes, see the original PR. (cherry picked from commit 587988f6df7e1d3b1a369b93a5634620129e3d9d)
* Introduce is_intrange() to validate a range of integers delimited by ':' or '-'Renato Botelho2017-01-241-0/+29
|
* Force compress for where_is_ipaddr_configured check_localipPhil Davis2017-01-231-1/+1
| | | | (cherry picked from commit f0b1358dfe520ad3b771127127daed970ba2c0a0)
* Force compress for where_is_ipaddr_configuredPhil Davis2017-01-232-2/+6
| | | | (cherry picked from commit cde28bfa0e11f268485ec1f6ccb73a3a2f66448f)
* Always force compress when calling Net_IPv6Phil Davis2017-01-235-9/+24
| | | | (cherry picked from commit 587995fb57f91894d1f8eb6b296a9fe2fa111fac)
* Remove unused variable $cfglckkeyconsumersRenato Botelho2017-01-231-5/+3
|
* Fix #7141 Add a priv for UPNPPhil Davis2017-01-191-0/+6
| | | | | | so users can grant access to Services->UPNP Note: Status->UPNP already has a priv and it works. (cherry picked from commit a5a899e4388f2737a6d1cdc82c7325c20fb72ee4)
* Fix #7139 Accessing help about this pagePhil Davis2017-01-191-1/+1
| | | | | from a user that does not have admin or all page privilege. (cherry picked from commit 166540830275318c8dec9199d8a9ee0e605f606a)
* Fix #7136 Start OpenVPN on ordinary VIPPhil Davis2017-01-191-2/+2
| | | | (cherry picked from commit ddf99718d5f1f4545483c39d3759fdfbb788b0fb)
* Remove extra parenthesis and blank lineRenato Botelho2017-01-171-3/+2
|
* Simplify logicRenato Botelho2017-01-171-8/+4
|
* Fix #7118 icmp-type anyPhil Davis2017-01-161-1/+1
| | | When 'any' is selected as the ICMP type, do not write 'icmp-type any' in the rule, just leave it out.
* Fix #7105: Old rules may not have ipprotocol defined, consider it icmp6-type ↵Renato Botelho2017-01-161-1/+1
| | | | only when ipprotocol is inet6
* Redmine #5549 Allow variable number of DNS ServersPhil Davis2017-01-131-7/+7
| | | | (cherry picked from commit a2d23e88596deab6bbed2818385a0b72c913843a)
* Fix #6153Renato Botelho2017-01-121-0/+4
| | | | | | Initialize cached IP and Time on loop for RFC2136 items, without this the items used on last loop iteration will be used again and second item on the same interface will not be updated
* Simplify logicRenato Botelho2017-01-111-5/+3
|
* Fix #6712Renato Botelho2017-01-111-1/+1
| | | | Use system_hosts_entries to generate unbound host_entries.conf
* Ticket #6712: Create system_hosts_entries()Renato Botelho2017-01-111-24/+21
| | | | This function will return an array all items to be added to /etc/hosts.
* Ticket #6712: Create system_hosts_dhcpd_entries()Renato Botelho2017-01-111-78/+104
| | | | | This function will return an array with dhcpd and dhcpdv6 items to be added to /etc/hosts.
* Ticket #6712: Create system_hosts_override_entries()Renato Botelho2017-01-111-23/+51
| | | | | This function will return an array with dnsmasq or unbound items to be added to /etc/hosts
* Ticket #6712: Deprecate read_hosts()Renato Botelho2017-01-111-30/+1
| | | | Read local items from system_hosts_local_entries()
* Ticket #6712: Create system_hosts_local_entries()Renato Botelho2017-01-111-36/+62
| | | | | | This function will return an array with 127.0.0.1, ::1 and LAN (or first interface with no gateway when LAN is not there) items to be added to /etc/hosts
* Kill dhcpleases after we are sure we can write /etc/hostsRenato Botelho2017-01-111-7/+8
|
* Fix styleRenato Botelho2017-01-111-58/+111
|
* Make sure IP address is v4 before create /etc/hosts entryRenato Botelho2017-01-111-2/+2
|
* Exclude non-qualified hostnames from hosts file. Ticket #6064Chris Buechler2017-01-111-12/+12
|
* Do not write a 'restrict' line to the NTP config if it will be empty. Fixes ↵jim-p2017-01-111-10/+12
| | | | #7110
* Only include files that ends with .incRenato Botelho2017-01-111-2/+3
|
* Add requirestatefilter. Implements #7069.derelict-pf2017-01-111-0/+20
| | | | (cherry picked from commit 0a3150896bc412868cfb79473293ed81c87a50a7)
OpenPOWER on IntegriCloud