[patch] correct answer of a VMPS-Reconfirm-Request

Hermann Lauer Hermann.Lauer at iwr.uni-heidelberg.de
Tue Feb 17 11:15:25 CET 2009


Hello Developers,

please consider the appended configuration patch for inclusion. 
It allows radiusd to correctly answer vmps reconfirmation request as
OpenVMPS (http://vmps.sourceforge.net/) does this.

Thanks,
  Hermann

-- 
Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres 
Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224
Email: Hermann.Lauer at iwr.uni-heidelberg.de
-------------- next part --------------
--- freeradius-server-2.1.3/raddb/sites-available/vmps.orig	2009-02-16 08:12:34.000000000 +0100
+++ freeradius-server-2.1.3/raddb/sites-available/vmps	2009-02-16 08:19:20.000000000 +0100
@@ -84,6 +84,14 @@
 			#
 			#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.


More information about the Freeradius-Devel mailing list