Changeset 526:6fe3e5cf9fb2 in freeDiameter for extensions/app_radgw/rgwx_auth.c
- Timestamp:
- Sep 1, 2010, 4:21:15 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/rgwx_auth.c
r405 r526 123 123 struct session_handler * sess_hdl; /* We store RADIUS request authenticator information in the session */ 124 124 char * confstr; 125 126 int ignore_nai; 125 127 }; 126 128 127 129 /* Initialize the plugin */ 128 static int auth_conf_parse(char * conf file, struct rgwp_config ** state)130 static int auth_conf_parse(char * confstr, struct rgwp_config ** state) 129 131 { 130 132 struct rgwp_config * new; 131 133 struct dict_object * app; 132 134 133 TRACE_ENTRY("%p %p", conf file, state);135 TRACE_ENTRY("%p %p", confstr, state); 134 136 CHECK_PARAMS( state ); 135 137 … … 138 140 139 141 CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free ) ); 140 new->confstr = conffile; 142 new->confstr = confstr; 143 144 if (strstr(confstr, "nonai")) 145 new->ignore_nai = 1; 141 146 142 147 /* Resolve all dictionary objects we use */ … … 418 423 } else { 419 424 int i = 0; 420 if (un ) {425 if (un && ! cs->ignore_nai) { 421 426 /* Is there an '@' in the user name? We don't care for decorated NAI here */ 422 427 for (i = un_len - 2; i > 0; i--) {
Note: See TracChangeset
for help on using the changeset viewer.