pam_close_session

Name

pam_close_session -- indicate that an authenticated session has ended

Synopsis

#include <security/pam_appl.h>

int pam_close_session(pam_handle_t * pamh, int flags);

Description

pam_close_session() is used to indicate that an authenticated session has ended. It is used to inform the module that the user is exiting a session. It should be possible for the PAM library to open a session and close the same session from different applications.

flags may have the value PAM_SILENT to indicate that no output should be generated as a result of this function call.

Return Value

PAM_SUCCESS 

Success.

PAM_SESSION_ERR 

One of the required loaded modules was unable to close a session for the user.

Note: Errors may be translated to text with pam_strerror().