Merge branch 'tmp-fix-nas-port' into 'master'

radius: do not include NAS-Port via rc_aaa()

Closes #269

See merge request openconnect/ocserv!150
This commit is contained in:
Nikos Mavrogiannopoulos
2020-03-20 12:40:08 +00:00
3 changed files with 5 additions and 4 deletions

1
NEWS
View File

@@ -11,6 +11,7 @@
- Corrected issue with DTLS-PSK negotiation which prevented it from being - Corrected issue with DTLS-PSK negotiation which prevented it from being
enabled. enabled.
- Improved IPv6 handling of AnyConnect client for Apple ios (#254). - Improved IPv6 handling of AnyConnect client for Apple ios (#254).
- Fixed issue with Radius accounting (#269).
* Version 0.12.6 (released 2019-12-28) * Version 0.12.6 (released 2019-12-28)

View File

@@ -185,7 +185,7 @@ static void radius_acct_session_stats(void *_vctx, unsigned auth_method, const c
append_acct_standard(vctx, vctx->rh, ai, &send); append_acct_standard(vctx, vctx->rh, ai, &send);
append_stats(vctx->rh, &send, stats); append_stats(vctx->rh, &send, stats);
ret = rc_aaa(vctx->rh, ai->id, send, &recvd, NULL, 1, PW_ACCOUNTING_REQUEST); ret = rc_aaa(vctx->rh, 0, send, &recvd, NULL, 0, PW_ACCOUNTING_REQUEST);
if (recvd != NULL) if (recvd != NULL)
rc_avpair_free(recvd); rc_avpair_free(recvd);
@@ -227,7 +227,7 @@ static int radius_acct_open_session(void *_vctx, unsigned auth_method, const com
append_acct_standard(vctx, vctx->rh, ai, &send); append_acct_standard(vctx, vctx->rh, ai, &send);
ret = rc_aaa(vctx->rh, ai->id, send, &recvd, NULL, 1, PW_ACCOUNTING_REQUEST); ret = rc_aaa(vctx->rh, 0, send, &recvd, NULL, 0, PW_ACCOUNTING_REQUEST);
if (recvd != NULL) if (recvd != NULL)
rc_avpair_free(recvd); rc_avpair_free(recvd);
@@ -276,7 +276,7 @@ static void radius_acct_close_session(void *_vctx, unsigned auth_method, const c
append_acct_standard(vctx, vctx->rh, ai, &send); append_acct_standard(vctx, vctx->rh, ai, &send);
append_stats(vctx->rh, &send, stats); append_stats(vctx->rh, &send, stats);
ret = rc_aaa(vctx->rh, ai->id, send, &recvd, NULL, 1, PW_ACCOUNTING_REQUEST); ret = rc_aaa(vctx->rh, 0, send, &recvd, NULL, 0, PW_ACCOUNTING_REQUEST);
if (recvd != NULL) if (recvd != NULL)
rc_avpair_free(recvd); rc_avpair_free(recvd);

View File

@@ -348,7 +348,7 @@ static int radius_auth_pass(void *ctx, const char *pass, unsigned pass_len)
} }
pctx->pass_msg[0] = 0; pctx->pass_msg[0] = 0;
ret = rc_aaa(pctx->vctx->rh, pctx->id, send, &recvd, pctx->pass_msg, 1, PW_ACCESS_REQUEST); ret = rc_aaa(pctx->vctx->rh, 0, send, &recvd, pctx->pass_msg, 0, PW_ACCESS_REQUEST);
if (ret == OK_RC) { if (ret == OK_RC) {
uint32_t ipv4; uint32_t ipv4;