comparison 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
comparison
equal deleted inserted replaced
515:b9167b4de7dc 516:1c2f5ee38039
143 %token <integer> INTEGER 143 %token <integer> INTEGER
144 %token <ss> IP 144 %token <ss> IP
145 145
146 %type <string> FINDFILEEXT 146 %type <string> FINDFILEEXT
147 147
148 %token <integer> NAS_OR_PXY
149
148 /* simple tokens */ 150 /* simple tokens */
149 %token DISABLED 151 %token DISABLED
150 %token AUTH 152 %token AUTH
151 %token ACCT 153 %token ACCT
152 154
153 %token PLG_PREFIX 155 %token PLG_PREFIX
154 %token CLI_PREFIX
155 156
156 %token AUTH_ENABLE 157 %token AUTH_ENABLE
157 %token AUTH_PORT 158 %token AUTH_PORT
158 %token AUTH_IP4 159 %token AUTH_IP4
159 %token AUTH_IP6 160 %token AUTH_IP6
261 /* -------------------------------------- */ 262 /* -------------------------------------- */
262 263
263 clientdef: { 264 clientdef: {
264 buf_reinit(); 265 buf_reinit();
265 } 266 }
266 CLI_PREFIX '=' IP '/' clisecret_key ';' 267 NAS_OR_PXY '=' IP '/' clisecret_key ';'
267 { 268 {
268 /* Add this client */ 269 /* Add this client */
269 if ( rgw_clients_add( $4, &buf, buf_sz ) ) { 270 if ( rgw_clients_add( $4, &buf, buf_sz, $2 ) ) {
270 yyerror (&yylloc, conffile, "Error parsing / adding client !"); 271 yyerror (&yylloc, conffile, "Error parsing / adding client !");
271 YYERROR; 272 YYERROR;
272 } 273 }
273 274
274 /* reinit the buffer */ 275 /* reinit the buffer */
"Welcome to our mercurial repository"