mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
sec-mod: always mark an active (open) session
Previously it was only marked when an accounting module was present, though now that we export data to occtl, that information is useful even without accounting module. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -473,10 +473,9 @@ int handle_secm_session_open_cmd(sec_mod_st *sec, int fd, const SecmSessionOpenM
|
||||
e->status = PS_AUTH_FAILED;
|
||||
seclog(sec, LOG_INFO, "denied session for user '%s' "SESSION_STR, e->acct_info.username, e->acct_info.safe_id);
|
||||
return send_failed_session_open_reply(sec, fd);
|
||||
} else {
|
||||
e->session_is_open = 1;
|
||||
}
|
||||
}
|
||||
e->session_is_open = 1;
|
||||
|
||||
rep.username = e->acct_info.username;
|
||||
rep.groupname = e->acct_info.groupname;
|
||||
|
||||
Reference in New Issue
Block a user