failed to notify radius server after user disconnecting

163 huangjiesin at 163.com
Thu Feb 19 09:41:44 PST 2015


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

     }


if i replaced it with the following code:


     while (t != NULL) {
         if (t->have_session == 0 && now - t->time > MAX_AUTH_SECS + 
SLACK_TIME) {
             htable_delval(db, &iter);
             clean_entry(sec, t);
         }
         t = htable_next(db, &iter);

     }


it worked as before. but reconnect will fail using cookie. i'm no c 
programmer and this is beyond my capability. Hope that someone can solve 
this problem. Thank you




More information about the openconnect-devel mailing list