radisu: always send NAS_PORT_TYPE

This commit is contained in:
Nikos Mavrogiannopoulos
2015-05-03 10:06:45 +02:00
parent d09bff7b09
commit 6022b80394

View File

@@ -223,6 +223,15 @@ static int radius_auth_pass(void *ctx, const char *pass, unsigned pass_len)
goto cleanup;
}
service = PW_ASYNC;
if (rc_avpair_add(rh, &send, PW_NAS_PORT_TYPE, &service, -1, 0) == NULL) {
syslog(LOG_ERR,
"%s:%u: user '%s' auth error", __func__, __LINE__,
pctx->username);
ret = ERR_AUTH_FAIL;
goto cleanup;
}
ret = rc_aaa(rh, 0, send, &recvd, NULL, 1, PW_ACCESS_REQUEST);
if (ret == OK_RC) {