failed to notify radius server after user disconnecting

Nikos Mavrogiannopoulos nmav at gnutls.org
Thu Feb 19 10:16:35 PST 2015


On Fri, 2015-02-20 at 01:41 +0800, 163 wrote:
> Hello,
> 
>   with the latest version, i find out that radius server will not be 
> notified if the user disconnect manually, resulting in no accounting 
> recorded. the problem seems to be related to a block of code in sed-mod-db.c
> 
> while (t != NULL) {
>          if ((now - t->time) > (sec->config->cookie_timeout + 
> AUTH_SLACK_TIME) &&
>              t->in_use == 0) {
>              htable_delval(db, &iter);
>              clean_entry(sec, t);
>          }
>          t = htable_next(db, &iter);
> 
>      }

That's a bit suspicious because this code shouldn't even be reached if
the user disconnects normally. Could you show the ocserv logs in the
case where radius server is not notified?

regards,
Nikos





More information about the openconnect-devel mailing list