Answer vmps reconfirmation request
authorAlan T. DeKok <aland@freeradius.org>
Tue, 17 Feb 2009 13:07:32 +0000 (14:07 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 17 Feb 2009 13:07:32 +0000 (14:07 +0100)
Patch from Hermann Lauer.

raddb/sites-available/vmps

index 5416168..13f4e95 100644 (file)
@@ -84,6 +84,14 @@ server vmps {
                        #
                        #VMPS-VLAN-Name = "%{sql:select ... where mac='%{VMPS-Mac}'}"
                }
+               
+               # correct reply packet type for reconfirmation requests
+               #   
+               if (VMPS-Packet-Type == VMPS-Reconfirm-Request){
+                       update reply {
+                               VMPS-Packet-Type := VMPS-Reconfirm-Response
+                       }
+               }
        }
 
        # Proxying of VMPS requests is NOT supported.