chbind: sample virtual server
authorSam Hartman <hartmans@debian.org>
Fri, 3 Feb 2012 19:09:23 +0000 (14:09 -0500)
committerSam Hartman <hartmans@debian.org>
Tue, 5 Mar 2013 20:04:49 +0000 (15:04 -0500)
this is a sample channel binding virtual server for
draft-ietf-abfab-gss-eap.  It's not complete but is intended to be
sufficient to start testing.

raddb/sites-available/chbind [new file with mode: 0644]

diff --git a/raddb/sites-available/chbind b/raddb/sites-available/chbind
new file mode 100644 (file)
index 0000000..4b07bd3
--- /dev/null
@@ -0,0 +1,19 @@
+server chbind{
+    authorize {
+       if (GSS-Acceptor-Service-Name && outer.request:GSS-Acceptor-Service-Name != GSS-Acceptor-Service-Name ) {
+           reject
+       }
+       update reply {
+           GSS-Acceptor-Service-NAME == "%{GSS-ACCEPTOR-SERVICE-Name}"
+           GSS-ACCEPTOR-Host-Name == "%{GSS-Acceptor-Host-Name}"
+           GSS-Acceptor-Realm-Name == "%{GSS-Acceptor-Realm-Name}"
+       }
+       if (GSS-Acceptor-Service-Name || GSS-Acceptor-Realm-Name || GSS-Acceptor-Host-Name) {
+           update control {
+               Chbind-Response-Code := success
+           }
+       }
+       handled
+    }
+}
+