Changeset 526:6fe3e5cf9fb2 in freeDiameter for extensions/app_radgw/rgwx_acct.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_acct.c
r448 r526 150 150 struct session_handler * sess_hdl; /* We store RADIUS request authenticator information in the session */ 151 151 char * confstr; 152 153 int ignore_nai; 152 154 }; 153 155 … … 173 175 CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free ) ); 174 176 new->confstr = conffile; 177 178 if (strstr(conffile, "nonai")) 179 new->ignore_nai = 1; 175 180 176 181 /* Resolve all dictionary objects we use */ … … 461 466 CHECK_FCT( fd_msg_avp_new ( cs->dict.Destination_Realm, 0, &avp ) ); 462 467 idx = 0; 463 if (un ) {468 if (un && ! cs->ignore_nai) { 464 469 /* Is there an '@' in the user name? We don't care for decorated NAI here */ 465 470 for (idx = un_len - 2; idx > 0; idx--) {
Note: See TracChangeset
for help on using the changeset viewer.