Commit graph

1012 commits

Author SHA1 Message Date
Jo-Philipp Wich
6b128c0281 modules/admin-full: use format_wifi_encryption() in wifi_join.htm to make encryption translatable 2012-08-14 12:45:06 +00:00
Jo-Philipp Wich
396350aaf4 modules/admin-full: rework help text for network_netlist widget 2012-08-09 23:44:18 +00:00
Jo-Philipp Wich
92fc96f6fd modules/niu: remove usage of wifi.channels() 2012-08-08 20:25:00 +00:00
Jo-Philipp Wich
e183e134b8 modules/admin-full: remove usage of wifi.channels() 2012-08-08 20:22:15 +00:00
Jo-Philipp Wich
a521cddcf8 modules/freifunk: use getiwinfo() instead of getiwconfig() 2012-08-08 20:07:39 +00:00
Jo-Philipp Wich
30597efafb modules/admin-mini: use getiwinfo() instead of getiwconfig() 2012-08-08 20:07:36 +00:00
Jo-Philipp Wich
a7f05a3341 modules/admin-mini: use iwinfo to perform scans 2012-08-08 19:57:05 +00:00
Jo-Philipp Wich
adafc82819 modules/admin-full: remove an ancient cbi model that hasn't been used in years 2012-08-08 19:33:17 +00:00
Jo-Philipp Wich
f0a99dd6c7 modules/admin-full: use luci.sys.net.mac_hints() in wifi maclist config 2012-08-08 15:20:10 +00:00
Jo-Philipp Wich
bf7b19f33b modules/admin-full: remove session expiry workaround from setting 2012-08-08 10:11:00 +00:00
Jo-Philipp Wich
c8ffc897e3 modules/rpc: adapt rpc controller to sauth api changes 2012-08-08 09:48:53 +00:00
Jo-Philipp Wich
a58370ab74 Rework authentication system
The validity of authentication tokens was determined by the
mtime of respective authentication tokens on filesystem
stored in $sessionpath.
Talking about hardware without RTC or without a prior
connection to a time server, date/time usually around 1970 -
so is the mtime of the authentication token file in
$sessionpath.

When now configuring an internet connection via LuCI, the
system might fetch the current date/time (e.g. via ntp)
which invalidates the token, returns "403 Forbidden" and
kicks the user out of the interface.

This patch changes the authentication system to use time values
based on the uptime of the machine - rather than values based upon
gettimeofday() and {a|m}time values - and save them inside the token.
That way can always determine the difference between login
(last interaction respectively) and the current time, in-
dependant of the system clock jumping backwards/forwards.

Warning: This patch removes the clean() function and respective calls.
This means, invalid tokens will NOT be determined and removed from
filesystem automatically anymore.
Before, every HTTP-call caused a scan for invalid tokens,
which is quite expensive. Instead consider using a cron job
deleting all stalled files periodically.

Contributed by T-Labs, Deutsche Telekom Innovation Laboratories

Signed-off-by: Mirko Vogt <mirko@openwrt.org>
2012-08-07 19:11:56 +00:00
Jo-Philipp Wich
69aa218335 return "403 Forbidden" if authentication token was given, however is invalid
Contributed by T-Labs, Deutsche Telekom Innovation Laboratories

Signed-off-by: Mirko Vogt <mirko@openwrt.org>
2012-08-07 19:11:52 +00:00
Jo-Philipp Wich
3c1c9d4400 modules/admin-full: copy bssid when joining a network as client (#455) 2012-07-24 11:37:38 +00:00
Jo-Philipp Wich
746a5be1a8 modules/admin-full: expose wmm option for mac80211 interfaces 2012-07-23 08:53:50 +00:00
Manuel Munz
d0a6fbf397 mod-freifunk: Fix problem with osm map, OpenLayers.Control.MouseDefaults() was removed in OpenLayers 2.12 2012-07-09 05:48:37 +00:00
Jo-Philipp Wich
13c3471eb3 modules/admin-full: fix frequency display on index status page 2012-07-06 01:21:27 +00:00
Daniel Golle
5be59e6ae7 Cosmetic changes to the terminology in the UI:
Replace references to the device running LuCI as being a "router", as that is
not necessarily the case.
2012-07-01 20:05:05 +00:00
Jo-Philipp Wich
d30109e350 modules/admin-full: sort networks by zone and name in overview 2012-06-27 10:12:20 +00:00
Jo-Philipp Wich
a99f570bf4 modules/admin-full: use get_wannet() and get_wan6net() to find wan networks on status page 2012-06-26 22:19:30 +00:00
Jo-Philipp Wich
c0451d8a72 modules/admin-full: remove support for configuring alias interfaces, they're useless now that ifaces can be part of multiple networks 2012-06-26 21:56:52 +00:00
Jo-Philipp Wich
254ad2dfd1 modules/admin-full: when deleting wifi-ifaces, remove all empty leftover networks, not only the first one 2012-06-26 21:49:27 +00:00
Jo-Philipp Wich
d52859b37e modules/admin-full: remove notice about iface exclusiveness when adding new networks 2012-06-26 21:49:21 +00:00
Jo-Philipp Wich
2e924f7aa5 modules/admin-full: extend wifi model to allow assigning multiple networks 2012-06-26 21:49:18 +00:00
Manuel Munz
92f0643e2c modules/freifunk: Add minlength datatype to location, #444 2012-06-25 10:02:53 +00:00
Daniel Golle
fb5d41c2a5 Only show the TX-power selector if the hardware supports more than one option.
Some mac80211 drivers (rt2x00) probably won't support limiting TX-power to a
user-defined value in the near future under certain conditions, so it makes
sense to not expose that option in order not to confuse the user.

See http://patchwork.openwrt.org/patch/2187/
to understand the situation.

Signed-off-by: Daniel Golle <dgolle@allnet.de>
2012-06-18 19:42:39 +00:00
Jo-Philipp Wich
5ae5d3be63 modules/admin-full: allow to specify the DHCP pool start as IPv4 address (#420) 2012-06-05 14:05:03 +00:00
Jo-Philipp Wich
b3e5467ec6 modules/admin-full: check /etc/ethers and /var/dhcp.leases for existence before trying to read them 2012-05-23 22:22:22 +00:00
Jo-Philipp Wich
16ffd14cc2 move luci specific index.html from package 'sgi-cgi' to 'admin-core'
Contributed by T-Labs, Deutsche Telekom Innovation Laboratories

Signed-off-by: Mirko Vogt <mirko.vogt@external.telekom.de>
2012-05-06 18:57:18 +00:00
Jo-Philipp Wich
1ec71bbefe modules/admin-full: add mac address suggestions to mac filter settings 2012-05-06 18:04:45 +00:00
Jo-Philipp Wich
a27481f35c modules/admin-full: filter init scripts without START in startup model 2012-05-06 09:48:06 +00:00
Jo-Philipp Wich
86e17aa657 modules/admin-full: do not show protocol warning for empty interfaces, link to physical settings instead 2012-04-22 13:35:58 +00:00
Manuel Munz
9bde4204cf modules/freifunk: Fix model/system confusion in public_status 2012-04-04 15:40:01 +00:00
Jo-Philipp Wich
1291f1dbb7 admin-full: allow to use translations for 'Not connected' state
This allows to use translated version of the 'Net connected' string in
the Status/Overview/Network section.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2012-04-02 22:50:26 +00:00
Jo-Philipp Wich
c3aff0c622 modules/admin-full: since switch port numbers depend on model and current solar cycle, give up on making the human readable but just give the raw index 2012-03-19 21:04:15 +00:00
Jo-Philipp Wich
785f71ebaf modules/admin-full: reorder compiler flags for luci-bwc, fixes build on Ubuntu 11.x 2012-03-13 21:10:18 +00:00
Jo-Philipp Wich
b22f022f2c modules/admin-full: add DNS resolution to connections status page, order connections descending by traffic 2012-03-04 18:36:05 +00:00
Jo-Philipp Wich
e6bf801bad modules/admin-full: scan three times to catch more networks in wifi join setup 2012-03-04 18:35:13 +00:00
Jo-Philipp Wich
c77a8b1647 modules/admin-full: revert r8324 2012-03-04 15:28:18 +00:00
Jo-Philipp Wich
7918380683 modules/admin-core: autofocus password field in login form 2012-03-04 15:03:05 +00:00
Jo-Philipp Wich
9de7ff8e69 modules/admin-full: reverse time labels in realtime stats (#386) 2012-03-04 14:06:30 +00:00
Jo-Philipp Wich
7b402d1964 modules/admin-full: remove per connection transfer stats, not exposed anymore in recent kernels 2012-03-03 13:10:33 +00:00
Jo-Philipp Wich
0453e50932 modules/admin-full: display wifi rates in assoclist tables 2012-02-23 17:15:50 +00:00
Jo-Philipp Wich
c07e6a6976 modules/admin-full: filter IPv6 linklocal IPs in iface overview 2012-02-15 22:49:56 +00:00
Jo-Philipp Wich
8d2af100a8 modules/admin-full: remove inline style for inface boxes 2012-02-15 16:01:07 +00:00
Jo-Philipp Wich
7bda8d6da3 modules/admin-full: use new button classes in iface overview template 2012-02-15 15:12:10 +00:00
Jo-Philipp Wich
639f58d404 modules/admin-full: add client_cert option in wifi configuration 2012-01-24 20:57:54 +00:00
Jo-Philipp Wich
4bf31a8792 modules/admin-full: redirect init script output in startup model actions 2012-01-12 12:15:21 +00:00
Jo-Philipp Wich
c043db6518 modules/admin-full: set password of logged in user instead of unconditionally using root, thanks Viktar Palstsiuk <viktar.palstsiuk@promwad.com> 2012-01-06 16:42:02 +00:00
Jo-Philipp Wich
1e0e458ff3 modules/admin-full: fix wireless interface removal if not network was assigned to the iface, thanks Viktar Palstsiuk <viktar.palstsiuk@promwad.com> 2012-01-06 16:28:54 +00:00