Previous section.

X/Open Single Sign-on Service (XSSO) -<br> Pluggable Authentication Modules

X/Open Single Sign-on Service (XSSO) -
Pluggable Authentication Modules
Copyright © 1997 The Open Group


pam_sm_close_session - service provider implementation for pam_close_session


#include <security/pam_appl.h>
#include <security/pam_modules.h>

int pam_sm_close_session( pam_handle_t *pamh, int flags, int argc, const char **argv );


In response to a call to pam_close_session() the PAM framework calls pam_sm_close_session() from the modules listed in the pam.conf file. The session management provider supplies the back-end functionality for this interface function.

pam_sm_close_session() is called to terminate session management.

The arguments for pam_sm_close_session() are:

pamh (in)

The PAM authentication handle, obtained from a previous call to pam_start().

flags (in)

The following flag may be set in the flags field:


Session service should not generate any messages.

argc (in)

The argc argument represents the number of module options defined in the PAM configuration.

argv (in)

Specifies the module options, which are interpreted and processed by the session management service. If an unknown option is passed in, an error should be logged and the option ignored.


The following PAM status codes shall be returned:


Successful completion.


Cannot make/remove an entry for the specified session.


Ignore underlying session module regardless of whether the control flag is required, optional or sufficient.


The caller does not possess the required authority.


Error in service module.


System error.


Memory buffer error.


Conversation error.

[??] Some characters or strings that appear in the printed document are not easily representable using HTML.

Why not acquire a nicely bound hard copy?
Click here to return to the publication details or order a copy of this publication.

Contents Next section Index