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; |
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 |
|
|
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; |