Added support for session control (relevant for PAM for now)

That in effect will utilize the pam_open_session() and pam_close_session().
It is disabled by default as it requires more resources from the security module.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-06-10 15:16:40 +02:00
parent 01db3e5817
commit 28dca2aa0c
19 changed files with 307 additions and 22 deletions
+20 -1
View File
@@ -106,7 +106,7 @@ message session_info_msg
/*
* == Auth with username/password ==
*
* main worker
* sec-mod worker
* <------ AUTH_INIT (username)
* AUTH_REP(MSG,SID) ------>
* <------ AUTH_CONT (SID,password)
@@ -173,3 +173,22 @@ message cookie
required uint32 ipv4_seed = 7;
required bytes sid = 8;
}
/*
* == Session Termination ==
*
* main sec-mod
* SESSION_OPEN/CLOSE ------>
*
*/
/* SEC_SESSION_CLOSE */
message sec_auth_session_msg
{
required bytes sid = 1;
}
message sec_auth_session_reply_msg
{
required AUTH_REP reply = 1;
}