Merge remote-tracking branch 'origin/master' into staging
[mirror/dsa-puppet.git] / modules / roles / templates / rtc / freeradius-rtc.erb
diff --git a/modules/roles/templates/rtc/freeradius-rtc.erb b/modules/roles/templates/rtc/freeradius-rtc.erb
new file mode 100644 (file)
index 0000000..b066cfb
--- /dev/null
@@ -0,0 +1,45 @@
+server rtc.debian.org {
+  listen {
+    ipaddr = 127.0.0.1
+    port = 0
+    type = auth
+  }
+
+  authorize {
+    rtc_users
+    digest
+  }
+
+  authenticate {
+    digest
+  }
+
+  preacct {
+  }
+
+  accounting {
+  }
+
+  session {
+  }
+
+  post-auth {
+    update reply {
+      Reply-Message = "thanks for using rtc.debian.org"
+    }
+    Post-Auth-Type REJECT {
+      attr_filter.access_reject
+    }
+  }
+
+  pre-proxy {
+  }
+
+  post-proxy {
+  }
+
+  client localhost {
+    ipaddr = 127.0.0.1
+    secret = <%= @radius_password %>
+  }
+}