Commit graph

1057 commits

Author SHA1 Message Date
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
Jo-Philipp Wich
ef65fbd9dc modules/admin-full: make luci-bwc dlopen() libiwinfo.so instead of lua/iwinfo.so 2012-01-01 17:20:16 +00:00
Jo-Philipp Wich
706eb828ad modules/admin-full: allow space separated lists of macs in static lease form (#319) 2012-01-01 14:43:56 +00:00
Jo-Philipp Wich
28426c25fc modules/admin-full: fix crypto depends for ad-hoc and static wds modes (#271) 2011-12-21 22:41:44 +00:00
Jo-Philipp Wich
45d604fea3 modules/admin-core: use luci.model.uci.apply() in service control to restart dependencies of the current config as well 2011-12-20 19:04:04 +00:00
Jo-Philipp Wich
79231d68be modules/admin-core: fix apply actions for configs with hyphens or underscore in the name 2011-12-20 18:31:47 +00:00
Jo-Philipp Wich
abb201ab57 modules/admin-full: reuse sysupgrade facilities to create backup archive 2011-12-20 17:35:50 +00:00
Jo-Philipp Wich
3bccd25281 modules/admin-full: probe for EAP support in wpad/hostapd/wpa_supplicant and offer wpa/wpa2 only if it is present 2011-12-13 15:57:32 +00:00
Jo-Philipp Wich
3d2468cf34 modules/admin-full: fix System -> Administration menu if dropbear is not installed 2011-12-08 03:35:27 +00:00
Jo-Philipp Wich
5e83af45ae modules/admin-full, po: s/libiwinfo/libiwinfo-lua/ 2011-12-06 11:00:33 +00:00
Jo-Philipp Wich
9fa385a7ec modules/admin-full: fix removal of wireless networks if radio is disabled 2011-12-05 19:34:47 +00:00
Jo-Philipp Wich
2221b44d98 modules/admin-core: expose txpower offset in wifi json status 2011-12-05 18:35:00 +00:00
Jo-Philipp Wich
c47e0596dd modules/admin-full: use new iwinfo capabilities to display shifted tx power values 2011-12-05 18:29:04 +00:00
Manuel Munz
c5329d85d5 applications/splash: Fix blacklisting mechanism, expose status on public freifunk page, add json output and autoupdate. 2011-11-30 05:50:43 +00:00
Jo-Philipp Wich
33bb31838d modules/admin-full: allow bssid for sta wds as well 2011-11-15 15:47:46 +00:00
Jo-Philipp Wich
743296d42c modules/admin-full: bssid is valid in mac80211 sta mode too 2011-11-15 15:44:01 +00:00
Jo-Philipp Wich
0ecbaa400e modules/admin-full: don't make cipher mandatory 2011-11-13 21:03:06 +00:00
Jo-Philipp Wich
52f6514541 modules/admin-full: prepare uci changelog template for revised libuci-lua changelog format to properly expose add_list operations 2011-11-12 14:31:31 +00:00
Manuel Munz
c67d7b2a43 admin-full: When creating the ntp timeserver section also add the default ntp servers 2011-11-10 13:44:22 +00:00
Manuel Munz
525da459d7 admin-full: Better fix for the last change (timeserver setup), add button to add the missing section 2011-11-10 12:57:13 +00:00
Manuel Munz
a196198fb9 admin-full: Add timeserver section if it doesn't already exist in /etc/config/system (#329) 2011-11-10 12:25:58 +00:00
Manuel Munz
ffdeb77e84 admin-full: Expose bogusnxdomain setting in DHCP / DNS configuration (#339) 2011-11-10 11:40:18 +00:00
Jo-Philipp Wich
13f98b6d99 modules/admin-full: fix another html escape issue on interface overview page 2011-11-08 23:12:38 +00:00
Jo-Philipp Wich
f8a2f2c059 modules/admin-full: fix html escaping on interface overview page 2011-11-08 22:35:24 +00:00
Manuel Munz
6a3640cee2 modules/freifunk: Fix display of warning about diversity 2011-11-08 09:34:09 +00:00
Jo-Philipp Wich
6907d1f2cd modules/admin-full: do not hide toplevel network menu items, yet 2011-11-07 10:44:20 +00:00
Jo-Philipp Wich
905e682bb7 modules/admin-full: speed up network controller by using inreq flag 2011-11-07 10:38:41 +00:00
Jo-Philipp Wich
0b7eb82eb6 modules/admin-full: add option to override the WPA cipher (#303) 2011-11-07 06:30:36 +00:00
Manuel Munz
7d81806393 modules/freifunk: Show warning about diversity only if not using mac80211 2011-11-06 17:13:30 +00:00
Jo-Philipp Wich
0abb1420e7 modules/admin-full: add missing html escaping for SSID in associated stations table of wireless overview 2011-11-03 19:44:17 +00:00
Jo-Philipp Wich
eea1f8b679 modules/admin-full: when toggling a wifi-iface, first bring the radio down, then change the config, then bring it up again - prevents state vars from going out of sync 2011-11-02 18:59:18 +00:00
Manuel Munz
16c26a5154 modules/freifunk: Fix error on freifunk/adminindex page when running on the Development Environment 2011-11-02 10:34:04 +00:00
Manuel Munz
0ef557b15c modules/freifunk: Fix errors on index and contact pages when running the Development Environment 2011-11-02 08:45:40 +00:00
Jo-Philipp Wich
e4d8bc2946 modules/admin-full: luci-bwc: use 32 bit integer, fix endian problem leading to stalling graphs after random time periods 2011-10-28 19:20:39 +00:00
Jo-Philipp Wich
327e4e773a modules/admin-full: don't bother with 4k vlan / no 4k vlan nuisances, simply enable it when available 2011-10-27 00:02:10 +00:00
Jo-Philipp Wich
0bc7760cdb modules/admin-full: unify style of headings accross system menus, remove orphaned template 2011-10-26 23:43:04 +00:00
Jo-Philipp Wich
da527d2c44 modules/admin-full: remove associated network for the wifi-iface as well if it would be empty afterwards 2011-10-26 22:52:18 +00:00
Jo-Philipp Wich
f3973132f2 modules/admin-full: commit uci and restart corresponding radio when removing wifi networks 2011-10-26 22:29:57 +00:00
Jo-Philipp Wich
c3e8976605 modules/admin-full: lock channel section in ap wifi config if there is a station on the same radio 2011-10-26 22:12:50 +00:00
Jo-Philipp Wich
017d24c724 modules/admin-full: fix wifi join when "wwan" (or other iface) already exists but only contains the network we intend to replace anyway, also save firewall settings after wifi join 2011-10-26 21:54:51 +00:00
Jo-Philipp Wich
d409dd68ff modules/admin-full: switch back to alias() for / -> /admin/; chained firstchild() seems to be problematic yet 2011-10-26 03:04:18 +00:00
Jo-Philipp Wich
8c9aef1b2d modules/admin-full:
- move crontab to system menu
	- delete now empty services dispatcher
	- move service menu declaration into index
2011-10-26 00:58:12 +00:00
Jo-Philipp Wich
76548e7dad modules/admin-full: use firstchild() in index controller 2011-10-26 00:50:58 +00:00
Jo-Philipp Wich
7e882e8bd6 modules/admin-full: use firstchild() instead of fixed alias 2011-10-26 00:48:33 +00:00
Jo-Philipp Wich
6350803416 modules/admin-full: remove now orphaned service index template 2011-10-26 00:39:31 +00:00
Jo-Philipp Wich
94225a83c9 modules/admin-full: use firstchild() in services controller 2011-10-26 00:38:32 +00:00
Jo-Philipp Wich
6245ad6a73 modules/admin-full: rework system menu area 2011-10-24 01:10:34 +00:00
Manuel Munz
c0ce5f96f2 modules/freifunk: Nicer layout of the contact page; make note a TextValue field in the admin interface 2011-10-21 13:27:55 +00:00
Manuel Munz
cd1fa7c070 modules/freifunk: Fix small error 2011-10-18 18:59:58 +00:00
Jo-Philipp Wich
9c97cdb7b6 modules/admin-full: better handle interfaces with unsupported protocols 2011-10-18 13:20:43 +00:00
Manuel Munz
e4740d764b modules/freifunk: This was moved to freifunk-common with r7554 2011-10-16 13:22:26 +00:00
Jo-Philipp Wich
594e333a77 modules/admin-full: support installing multiple packages at once 2011-10-15 05:27:06 +00:00
Jo-Philipp Wich
00f23f60f6 modules/admin-full: move realtime stats into submenu 2011-10-15 05:10:58 +00:00
Jo-Philipp Wich
64bc95cb47 modules/admin-full: make software page tabbed, show available list broken down by letters; greatly speeds up loading time 2011-10-15 03:13:49 +00:00
Jo-Philipp Wich
af4afea77f modules/admin-full: fix JavaScript issues in live statistics 2011-10-14 13:33:47 +00:00
Jo-Philipp Wich
7a1fcbd6da modules/admin-full: update iface status after saving uci changes 2011-10-13 16:26:59 +00:00