mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-16 06:49:19 +08:00
sec-mod: log sucessful authentication
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -373,6 +373,10 @@ int handle_sec_auth_res(int cfd, sec_mod_st * sec, client_entry_st * e, int resu
|
|||||||
sizeof(e->acct_info.username));
|
sizeof(e->acct_info.username));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
seclog(sec, LOG_DEBUG, "auth complete %sfor user '%s' "SESSION_STR" of group: '%s'",
|
||||||
|
(e->auth_type & AUTH_TYPE_CERTIFICATE)?"(with cert)":"",
|
||||||
|
e->acct_info.username, e->acct_info.safe_id, e->acct_info.groupname);
|
||||||
|
|
||||||
ret = send_sec_auth_reply(cfd, sec, e, AUTH__REP__OK);
|
ret = send_sec_auth_reply(cfd, sec, e, AUTH__REP__OK);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
e->status = PS_AUTH_FAILED;
|
e->status = PS_AUTH_FAILED;
|
||||||
|
|||||||
Reference in New Issue
Block a user