Add a module instance attr_filter.pre-proxy (closes: #178)
authornbk <nbk>
Sat, 11 Jun 2005 16:43:50 +0000 (16:43 +0000)
committernbk <nbk>
Sat, 11 Jun 2005 16:43:50 +0000 (16:43 +0000)
Patch from Thor Spruyt <thor.spruyt@pandora.be>

raddb/radiusd.conf.in

index d957fe9..3023abb 100644 (file)
@@ -1325,10 +1325,16 @@ $INCLUDE ${confdir}/eap.conf
        # attr_filter - filters the attributes received in replies from
        # proxied servers, to make sure we send back to our RADIUS client
        # only allowed attributes.
-       attr_filter {
+       attr_filter attr_filter.post-proxy {
                attrsfile = ${confdir}/attrs
        }
 
+       # attr_filter - filters the attributes in the packets we send to
+       # the RADIUS home servers.
+       attr_filter attr_filter.pre-proxy {
+               attrsfile = ${confdir}/attrs.pre-proxy
+       }
+
        #  counter module:
        #  This module takes an attribute (count-attribute).
        #  It also takes a key, and creates a counter for each unique
@@ -1781,8 +1787,6 @@ authorize {
        #  un-comment the following line, and the 'detail auth_log'
        #  section, above.
 #      auth_log
-       
-#      attr_filter
 
        #
        #  The chap module will set 'Auth-Type := CHAP' if we are
@@ -2101,6 +2105,11 @@ pre-proxy {
        #  server, un-comment the following line, and the
        #  'detail pre_proxy_log' section, above.
 #      pre_proxy_log
+
+       #  Uncomment the following line if you want to filter requests
+       #  sent to remote servers based on the rules defined in the
+       #  'attrs.pre-proxy' file.
+#      attr_filter.pre-proxy
 }
 
 #
@@ -2109,7 +2118,6 @@ pre-proxy {
 #  post-proxy stage.
 #
 post-proxy {
-       #
 
        #  If you want to have a log of replies from a home server,
        #  un-comment the following line, and the 'detail post_proxy_log'
@@ -2120,8 +2128,7 @@ post-proxy {
 
        #  Uncomment the following line if you want to filter replies from
        #  remote proxies based on the rules defined in the 'attrs' file.
-
-#      attr_filter
+#      attr_filter.post-proxy
 
        #
        #  If you are proxying LEAP, you MUST configure the EAP