coovachilli_auth.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. -- Copyright 2008 Steven Barth <steven@midlink.org>
  2. -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  3. -- Licensed to the public under the Apache License 2.0.
  4. m = Map("coovachilli")
  5. -- uam config
  6. s1 = m:section(TypedSection, "uam")
  7. s1.anonymous = true
  8. s1:option( Value, "uamserver" )
  9. s1:option( Value, "uamsecret" ).password = true
  10. s1:option( Flag, "uamanydns" )
  11. s1:option( Flag, "nouamsuccess" )
  12. s1:option( Flag, "nouamwispr" )
  13. s1:option( Flag, "chillixml" )
  14. s1:option( Flag, "uamanyip" ).optional = true
  15. s1:option( Flag, "dnsparanoia" ).optional = true
  16. s1:option( Flag, "usestatusfile" ).optional = true
  17. s1:option( Value, "uamhomepage" ).optional = true
  18. s1:option( Value, "uamlisten" ).optional = true
  19. s1:option( Value, "uamport" ).optional = true
  20. s1:option( Value, "uamiport" ).optional = true
  21. s1:option( DynamicList, "uamdomain" ).optional = true
  22. s1:option( Value, "uamlogoutip" ).optional = true
  23. s1:option( DynamicList, "uamallowed" ).optional = true
  24. s1:option( Value, "uamui" ).optional = true
  25. s1:option( Value, "wisprlogin" ).optional = true
  26. s1:option( Value, "defsessiontimeout" ).optional = true
  27. s1:option( Value, "defidletimeout" ).optional = true
  28. s1:option( Value, "definteriminterval" ).optional = true
  29. s1:option( Value, "ssid" ).optional = true
  30. s1:option( Value, "vlan" ).optional = true
  31. s1:option( Value, "nasip" ).optional = true
  32. s1:option( Value, "nasmac" ).optional = true
  33. s1:option( Value, "wwwdir" ).optional = true
  34. s1:option( Value, "wwwbin" ).optional = true
  35. s1:option( Value, "localusers" ).optional = true
  36. s1:option( Value, "postauthproxy" ).optional = true
  37. s1:option( Value, "postauthproxyport" ).optional = true
  38. s1:option( Value, "locationname" ).optional = true
  39. -- mac authentication
  40. s2 = m:section(TypedSection, "macauth")
  41. s2.anonymous = true
  42. s2:option( Flag, "macauth" )
  43. s2:option( Flag, "macallowlocal" )
  44. s2:option( DynamicList, "macallowed" )
  45. pw = s2:option( Value, "macpasswd" )
  46. pw.optional = true
  47. pw.password = true
  48. s2:option( Value, "macsuffix" ).optional = true
  49. return m