diff extensions/app_radgw/rgw_conf.y @ 516:1c2f5ee38039

Allow RADIUS Proxies with the app_radgw extension
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 27 Aug 2010 10:59:51 +0900
parents ad3c46016584
children 4a9f08d6b6ba
line wrap: on
line diff
--- a/extensions/app_radgw/rgw_conf.y	Thu Aug 26 14:10:03 2010 +0900
+++ b/extensions/app_radgw/rgw_conf.y	Fri Aug 27 10:59:51 2010 +0900
@@ -145,13 +145,14 @@
 
 %type <string>	FINDFILEEXT
 
+%token <integer> NAS_OR_PXY
+
 /* simple tokens */
 %token		DISABLED
 %token		AUTH
 %token		ACCT
 
 %token 		PLG_PREFIX
-%token 		CLI_PREFIX
 
 %token		AUTH_ENABLE
 %token		AUTH_PORT
@@ -263,10 +264,10 @@
 clientdef:		{
 				buf_reinit();
 			}
-			CLI_PREFIX '=' IP '/' clisecret_key ';'
+			NAS_OR_PXY '=' IP '/' clisecret_key ';'
 			{
 				/* Add this client */
-				if ( rgw_clients_add( $4, &buf, buf_sz ) ) {
+				if ( rgw_clients_add( $4, &buf, buf_sz, $2 ) ) {
 					yyerror (&yylloc, conffile, "Error parsing / adding client !");
 					YYERROR;
 				}
"Welcome to our mercurial repository"