/[radius]/radius/radiusd/auth.c
ViewVC logotype

Diff of /radius/radiusd/auth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.74 by gray, Wed Apr 30 08:38:30 2003 UTC revision 1.75 by gray, Fri May 30 10:38:05 2003 UTC
# Line 434  rad_auth_init(RADIUS_REQ *radreq, int ac Line 434  rad_auth_init(RADIUS_REQ *radreq, int ac
434  {  {
435          VALUE_PAIR *namepair;          VALUE_PAIR *namepair;
436                    
437            log_open(L_AUTH);
438          /*          /*
439           * Get the username from the request           * Get the username from the request
440           */           */
441          namepair = avl_find(radreq->request, DA_USER_NAME);          namepair = avl_find(radreq->request, DA_USER_NAME);
442    
443          if ((namepair == (VALUE_PAIR *)NULL) ||          if (avp_null_string(namepair)) {
            (strlen(namepair->avp_strvalue) <= 0)) {  
444                  radlog_req(L_ERR, radreq, _("No username"));                  radlog_req(L_ERR, radreq, _("No username"));
445                  stat_inc(auth, radreq->ipaddr, num_bad_req);                  stat_inc(auth, radreq->ipaddr, num_bad_req);
446                  return -1;                  return -1;
# Line 452  rad_auth_init(RADIUS_REQ *radreq, int ac Line 452  rad_auth_init(RADIUS_REQ *radreq, int ac
452                  return -1;                  return -1;
453          }          }
454                                    
         /*  
          * Add any specific attributes for this username.  
          */  
         hints_setup(radreq);  
   
455          if (auth_detail)          if (auth_detail)
456                  write_detail(radreq, -1, "detail.auth");                  write_detail(radreq, -1, "detail.auth");
457    
# Line 711  rad_authenticate(RADIUS_REQ *radreq, int Line 706  rad_authenticate(RADIUS_REQ *radreq, int
706          struct auth_state_s *sp;          struct auth_state_s *sp;
707          struct auth_mach m;          struct auth_mach m;
708    
709          log_open(L_AUTH);          log_open(L_AUTH);
           
710          m.req = radreq;          m.req = radreq;
711          m.activefd = activefd;          m.activefd = activefd;
712          m.user_check = NULL;          m.user_check = NULL;

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26