PAM APIs

PAM lib (used by applications)

Start/end of the PAM lib.

pam_start( service, user name, callback, &pam_handle )
pam_end( pam_handle, status )

Module-specific data.

pam_get_data()
pam_set_data()

pam_get_item()
pam_set_item()

"auth" action

pam_authenticate( pam_handle, flags )
pam_setcred( pam_handle, flags )

"account" action

pam_acct_mgmt( pam_handle, flags )

"passwd" action

pam_chauthtok( pam_handle, flags )

"session" action

pam_open_session( pam_handle, flags )
pam_close_session( pam_handle, flags )

PAM modules’ API

“auth” action

pam_sm_authenticate( pam_handle, flags )
pam_sm_setcred( pam_handle, flags )

"account" action

pam_sm_acct_mgmt( pam_handle, flags )

"passwd" action

pam_sm_chauthtok( pam_handle, flags )

"session" action

pam_sm_open_session( pam_handle, flags )
pam_sm_close_session( pam_handle, flags )

Last updated