8b7ba59b42598f06daced9a25053346c6d465207
[project/luci.git] / applications / luci-chillispot / luasrc / model / cbi / chillispot_radius.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14 ]]--
15
16
17 m = Map("chillispot")
18
19
20 -- uam config
21 s1 = m:section(TypedSection, "uam")
22 s1.anonymous = true
23
24 s1:option( Value, "uamserver" )
25 s1:option( Value, "uamsecret" ).password = true
26 s1:option( Flag, "uamanydns" )
27 s1:option( Value, "uamhomepage" ).optional = true
28 s1:option( Value, "uamlisten" ).optional = true
29 s1:option( Value, "uamport" ).optional = true
30 s1:option( DynamicList, "uamallowed" ).optional = true
31
32
33 -- radius server
34 s2 = m:section(TypedSection, "radius")
35 s2.anonymous = true
36
37 s2:option( Value, "radiusserver1" )
38 s2:option( Value, "radiusserver2" )
39 s2:option( Value, "radiussecret" ).password = true
40
41 s2:option( Value, "radiuslisten" ).optional = true
42 s2:option( Value, "radiusauthport" ).optional = true
43 s2:option( Value, "radiusacctport" ).optional = true
44
45 s2:option( Value, "radiusnasid" ).optional = true
46 s2:option( Value, "radiusnasip" ).optional = true
47
48 s2:option( Value, "radiuscalled" ).optional = true
49 s2:option( Value, "radiuslocationid" ).optional = true
50 s2:option( Value, "radiuslocationname" ).optional = true
51
52
53 -- radius proxy
54 s3 = m:section(TypedSection, "proxy")
55 s3.anonymous = true
56
57 s3:option( Value, "proxylisten" ).optional = true
58 s3:option( Value, "proxyport" ).optional = true
59 s3:option( Value, "proxyclient" ).optional = true
60 ps = s3:option( Value, "proxysecret" )
61 ps.optional = true
62 ps.password = true
63
64 return m