--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- m = Map("chillispot") -- radius server s1 = m:section(TypedSection, "radius") s1.anonymous = 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 s1:option( Value, "radiusnasid" ).optional = true s1:option( Value, "radiusnasip" ).optional = true s1:option( Value, "radiuscalled" ).optional = true s1:option( Value, "radiuslocationid" ).optional = true s1:option( Value, "radiuslocationname" ).optional = true s1:option( Value, "radiusnasporttype" ).optional = true s1:option( Flag, "radiusoriginalurl" ) 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 s2 = m:section(TypedSection, "proxy") s2.anonymous = true 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 return m