* luci/app/chillispot: prepare for coovachilli
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 24 Sep 2008 22:59:11 +0000 (22:59 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 24 Sep 2008 22:59:11 +0000 (22:59 +0000)
applications/luci-chillispot/luasrc/controller/chillispot.lua
applications/luci-chillispot/luasrc/model/cbi/chillispot.lua
applications/luci-chillispot/luasrc/model/cbi/chillispot_macauth.lua
applications/luci-chillispot/luasrc/model/cbi/chillispot_network.lua
applications/luci-chillispot/luasrc/model/cbi/chillispot_radius.lua

index f3e52fa9d95231b668dbba2e8a819a8b287349f1..4cb9797b27de8c5dcf4537df0dbc7bb451d342f3 100644 (file)
@@ -18,9 +18,9 @@ function index()
        require("luci.i18n")
        local i18n = luci.i18n.translate
 
-       entry( { "admin", "services", "chillispot" },            cbi("chillispot"),         i18n("chillispot", "ChilliSpot"),                           90)
-       entry( { "admin", "services", "chillispot", "network" }, cbi("chillispot_network"), i18n("chillispot_network", "Network Configuration"),        10)
-       entry( { "admin", "services", "chillispot", "radius"  }, cbi("chillispot_radius"),  i18n("chillispot_radius",  "UAM and Radius Configuration"), 20)
-       entry( { "admin", "services", "chillispot", "macauth" }, cbi("chillispot_macauth"), i18n("chillispot_macauth", "MAC Authentication"),           30)
+       entry( { "admin", "services", "chillispot" },            cbi("chillispot"),         i18n("chillispot",         "ChilliSpot"),                 90)
+       entry( { "admin", "services", "chillispot", "network" }, cbi("chillispot_network"), i18n("chillispot_network", "Network Configuration"),      10)
+       entry( { "admin", "services", "chillispot", "radius"  }, cbi("chillispot_radius"),  i18n("chillispot_radius",  "Radius Configuration"),       20)
+       entry( { "admin", "services", "chillispot", "auth"    }, cbi("chillispot_auth"),    i18n("chillispot_auth",    "UAM and MAC Authentication"), 30)
 
 end
index 6c79d74561f23f2ccdd99f62d540fa7f1bddc03f..48ec797f168b00c6f06e24b81a25ccf01c09ff1f 100644 (file)
@@ -24,6 +24,8 @@ s1:option( Flag, "debug" )
 s1:option( Value, "interval" )
 s1:option( Value, "pidfile" ).optional = true
 s1:option( Value, "statedir" ).optional = true
+s1:option( Value, "cmdsock" ).optional = true
+s1:option( Value, "logfacility" ).optional = true
 
 -- remote config management
 s2 = m:section(TypedSection, "remoteconfig")
index 710b2165cc5d1cd569c64ad93f47d7a0423108aa..b042911b633279bca3f011e806f31bc0ef876147 100644 (file)
@@ -16,15 +16,61 @@ $Id$
 
 m = Map("chillispot")
 
+-- uam config
+s1 = m:section(TypedSection, "uam")
+s1.anonymous = true
+
+s1:option( Value, "uamserver" )
+s1:option( Value, "uamsecret" ).password = true
+
+s1:option( Flag, "uamanyip" )
+s1:option( Flag, "uamanydns" )
+s1:option( Flag, "dnsparanoia" )
+s1:option( Flag, "nouamsuccess" )
+s1:option( Flag, "nouamwispr" )
+s1:option( Flag, "usestatusfile" )
+s1:option( Flag, "chillixml" )
+
+s1:option( Value, "uamhomepage" ).optional = true
+s1:option( Value, "uamlisten" ).optional = true
+s1:option( Value, "uamport" ).optional = true
+s1:option( Value, "uamiport" ).optional = true
+s1:option( Value, "uamdomain" ).optional = true
+s1:option( Value, "uamlogoutip" ).optional = true
+s1:option( DynamicList, "uamallowed" ).optional = true
+s1:option( Value, "uamui" ).optional = true
+
+s1:option( Value, "wisprlogin" ).optional = true
+
+s1:option( Value, "defsessiontimeout" ).optional = true
+s1:option( Value, "defidletimeout" ).optional = true
+s1:option( Value, "definteriminterval" ).optional = true
+
+s1:option( Value, "ssid" ).optional = true
+s1:option( Value, "vlan" ).optional = true
+s1:option( Value, "nasip" ).optional = true
+s1:option( Value, "nasmac" ).optional = true
+s1:option( Value, "wwwdir" ).optional = true
+s1:option( Value, "wwwbin" ).optional = true
+
+s:option( Value, "localusers" ).optional = true
+s:option( Value, "postauthproxy" ).optional = true
+s:option( Value, "postauthproxyport" ).optional = true
+s:option( Value, "locationname" ).optional = true
+
 
 -- mac authentication
 s = m:section(TypedSection, "macauth")
 s.anonymous = true
 
 s:option( Flag, "macauth" )
+s:option( Flag, "macallowlocal" )
 s:option( DynamicList, "macallowed" )
-s:option( Value, "macpasswd" ).optional = true
-s:option( Value, "macsuffix" ).optional = true
 
+pw = s:option( Value, "macpasswd" )
+pw.optional = true
+pw.password = true
+
+s:option( Value, "macsuffix" ).optional = true
 
 return m
index b75fc5fb4cc999e5ee3334446e5e55b29ab5ca42..e26f32e1a3bb10bb978664b518696e586df3af0a 100644 (file)
@@ -22,6 +22,10 @@ m = Map("chillispot")
 s1 = m:section(TypedSection, "tun")
 s1.anonymous = true
 
+s1:option( Flag, "usetap" )
+s1:option( Value, "tundev" ).optional = true
+s1:option( Value, "txqlen" ).optional = true
+
 net = s1:option( Value, "net" )
 for _, route in ipairs(luci.sys.net.routes()) do
        if route.Iface ~= "lo" and route.Mask ~= "FFFFFFFF" then
@@ -60,6 +64,8 @@ end
 
 s2:option( Value, "dhcpmac" ).optional = true
 s2:option( Value, "lease" ).optional = true
+s2:option( Value, "dhcpstart" ).optional = true
+s2:option( Value, "dhcpend" ).optional = true
 
 
 return m
index 8b7ba59b42598f06daced9a25053346c6d465207..568c92f8338c083b614d8685338d1d75357198dd 100644 (file)
@@ -16,48 +16,53 @@ $Id$
 
 m = Map("chillispot")
 
-
--- uam config
-s1 = m:section(TypedSection, "uam")
+-- radius server
+s1 = m:section(TypedSection, "radius")
 s1.anonymous = true
 
-s1:option( Value, "uamserver" )
-s1:option( Value, "uamsecret" ).password = true
-s1:option( Flag, "uamanydns" )
-s1:option( Value, "uamhomepage" ).optional = true
-s1:option( Value, "uamlisten" ).optional = true
-s1:option( Value, "uamport" ).optional = true
-s1:option( DynamicList, "uamallowed" ).optional = true
+s1:option( Value, "radiusserver1" )
+s1:option( Value, "radiusserver2" )
+s1:option( Value, "radiussecret" ).password = true
 
+s1:option( Value, "radiuslisten" ).optional = true
+s1:option( Value, "radiusauthport" ).optional = true
+s1:option( Value, "radiusacctport" ).optional = true
 
--- radius server
-s2 = m:section(TypedSection, "radius")
-s2.anonymous = true
+s1:option( Value, "radiusnasid" ).optional = true
+s1:option( Value, "radiusnasip" ).optional = true
 
-s2:option( Value, "radiusserver1" )
-s2:option( Value, "radiusserver2" )
-s2:option( Value, "radiussecret" ).password = true
+s1:option( Value, "radiuscalled" ).optional = true
+s1:option( Value, "radiuslocationid" ).optional = true
+s1:option( Value, "radiuslocationname" ).optional = true
 
-s2:option( Value, "radiuslisten" ).optional = true
-s2:option( Value, "radiusauthport" ).optional = true
-s2:option( Value, "radiusacctport" ).optional = true
+s1:option( Value, "radiusnasporttype" ).optional = true
 
-s2:option( Value, "radiusnasid" ).optional = true
-s2:option( Value, "radiusnasip" ).optional = true
+s1:option( Flag, "radiusoriginalurl" )
 
-s2:option( Value, "radiuscalled" ).optional = true
-s2:option( Value, "radiuslocationid" ).optional = true
-s2:option( Value, "radiuslocationname" ).optional = true
+s1:option( Value, "adminuser" ).optional = true
+rs = s1:option( Value, "adminpassword" )
+rs.optional = true
+rs.password = true
+
+s1:option( Flag, "swapoctets" )
+s1:option( Flag, "openidauth" )
+s1:option( Flag, "wpaguests" )
+s1:option( Flag, "acctupdate" )
+
+s1:option( Value, "coaport" ).optional = true
+s1:option( Flag, "coanoipcheck" )
+
+s1:option( Flag, "eapolenable" ).optional = true
 
 
 -- radius proxy
-s3 = m:section(TypedSection, "proxy")
-s3.anonymous = true
+s2 = m:section(TypedSection, "proxy")
+s2.anonymous = true
 
-s3:option( Value, "proxylisten" ).optional = true
-s3:option( Value, "proxyport" ).optional = true
-s3:option( Value, "proxyclient" ).optional = true
-ps = s3:option( Value, "proxysecret" )
+s2:option( Value, "proxylisten" ).optional = true
+s2:option( Value, "proxyport" ).optional = true
+s2:option( Value, "proxyclient" ).optional = true
+ps = s2:option( Value, "proxysecret" )
 ps.optional = true
 ps.password = true