294d53873593aeda2923a3e5cb2394f60b6a1649
[project/luci.git] / applications / luci-app-coovachilli / luasrc / model / cbi / coovachilli_auth.lua
1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
3 -- Licensed to the public under the Apache License 2.0.
4
5 m = Map("coovachilli")
6
7 -- uam config
8 s1 = m:section(TypedSection, "uam")
9 s1.anonymous = true
10
11 s1:option( Value, "uamserver" )
12 s1:option( Value, "uamsecret" ).password = true
13
14 s1:option( Flag, "uamanydns" )
15 s1:option( Flag, "nouamsuccess" )
16 s1:option( Flag, "nouamwispr" )
17 s1:option( Flag, "chillixml" )
18 s1:option( Flag, "uamanyip" ).optional = true
19 s1:option( Flag, "dnsparanoia" ).optional = true
20 s1:option( Flag, "usestatusfile" ).optional = true
21
22 s1:option( Value, "uamhomepage" ).optional = true
23 s1:option( Value, "uamlisten" ).optional = true
24 s1:option( Value, "uamport" ).optional = true
25 s1:option( Value, "uamiport" ).optional = true
26 s1:option( DynamicList, "uamdomain" ).optional = true
27 s1:option( Value, "uamlogoutip" ).optional = true
28 s1:option( DynamicList, "uamallowed" ).optional = true
29 s1:option( Value, "uamui" ).optional = true
30
31 s1:option( Value, "wisprlogin" ).optional = true
32
33 s1:option( Value, "defsessiontimeout" ).optional = true
34 s1:option( Value, "defidletimeout" ).optional = true
35 s1:option( Value, "definteriminterval" ).optional = true
36
37 s1:option( Value, "ssid" ).optional = true
38 s1:option( Value, "vlan" ).optional = true
39 s1:option( Value, "nasip" ).optional = true
40 s1:option( Value, "nasmac" ).optional = true
41 s1:option( Value, "wwwdir" ).optional = true
42 s1:option( Value, "wwwbin" ).optional = true
43
44 s1:option( Value, "localusers" ).optional = true
45 s1:option( Value, "postauthproxy" ).optional = true
46 s1:option( Value, "postauthproxyport" ).optional = true
47 s1:option( Value, "locationname" ).optional = true
48
49
50 -- mac authentication
51 s2 = m:section(TypedSection, "macauth")
52 s2.anonymous = true
53
54 s2:option( Flag, "macauth" )
55 s2:option( Flag, "macallowlocal" )
56 s2:option( DynamicList, "macallowed" )
57
58 pw = s2:option( Value, "macpasswd" )
59 pw.optional = true
60 pw.password = true
61
62 s2:option( Value, "macsuffix" ).optional = true
63
64 return m