coovachilli_radius.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. -- radius server
  6. s1 = m:section(TypedSection, "radius")
  7. s1.anonymous = true
  8. s1:option( Value, "radiusserver1" )
  9. s1:option( Value, "radiusserver2" )
  10. s1:option( Value, "radiussecret" ).password = true
  11. s1:option( Value, "radiuslisten" ).optional = true
  12. s1:option( Value, "radiusauthport" ).optional = true
  13. s1:option( Value, "radiusacctport" ).optional = true
  14. s1:option( Value, "radiusnasid" ).optional = true
  15. s1:option( Value, "radiusnasip" ).optional = true
  16. s1:option( Value, "radiuscalled" ).optional = true
  17. s1:option( Value, "radiuslocationid" ).optional = true
  18. s1:option( Value, "radiuslocationname" ).optional = true
  19. s1:option( Value, "radiusnasporttype" ).optional = true
  20. s1:option( Flag, "radiusoriginalurl" )
  21. s1:option( Value, "adminuser" ).optional = true
  22. rs = s1:option( Value, "adminpassword" )
  23. rs.optional = true
  24. rs.password = true
  25. s1:option( Flag, "swapoctets" )
  26. s1:option( Flag, "openidauth" )
  27. s1:option( Flag, "wpaguests" )
  28. s1:option( Flag, "acctupdate" )
  29. s1:option( Value, "coaport" ).optional = true
  30. s1:option( Flag, "coanoipcheck" )
  31. -- radius proxy
  32. s2 = m:section(TypedSection, "proxy")
  33. s2.anonymous = true
  34. s2:option( Value, "proxylisten" ).optional = true
  35. s2:option( Value, "proxyport" ).optional = true
  36. s2:option( Value, "proxyclient" ).optional = true
  37. ps = s2:option( Value, "proxysecret" )
  38. ps.optional = true
  39. ps.password = true
  40. return m