Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

libpam(3LIB)

Name

libpam - PAM (Pluggable Authentication Module) library

Synopsis

cc [ flag... ] file... –lpam [ library... ]
#include <security/pam_appl.h>

Description

Functions in this library provide routines for the Pluggable Authentication Module (PAM).

INTERFACES

The shared object libpam.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces.

pam_acct_mgmt
pam_authenticate
pam_chauthtok
pam_close_session
pam_end
pam_eval
pam_get_data
pam_get_item
pam_get_user
pam_getenv
pam_getenvlist
pam_open_session
pam_putenv
pam_set_data
pam_set_item
pam_setcred
pam_start
pam_strerror

Files

/lib/libpam.so.1

shared object

/etc/pam.conf

configuration file

/etc/pam.d/service

alternate PAM configuration files

/usr/lib/security/pam_dial_auth.so.1

authentication management PAM module for dialups

/usr/lib/security/pam_rhosts_auth.so.1

authentication management PAM modules that use ruserok()

/usr/lib/security/pam_sample.so.1

sample PAM module

Attributes

See attributes(7) for description of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library
MT Level
MT-Safe with exceptions

See Also

pvs(1), pam(3PAM), intro(3), pam.conf(5), attributes(7), pam_authtok_check(7), pam_authtok_get(7), pam_authtok_store(7), pam_dhkeys(7), pam_dial_auth(7), pam_passwd_auth(7), pam_rhosts_auth(7), pam_sample(7), pam_unix_account(7), pam_unix_auth(7), pam_unix_session(7), pam_user_policy(7)

Notes

The functions in libpam are MT-Safe only if each thread within the multithreaded application uses its own PAM handle.

The pam_unix(7) module is no longer supported. Similar functionality is provided by pam_authtok_check(7), pam_authtok_get(7), pam_authtok_store(7), pam_dhkeys(7), pam_passwd_auth(7), pam_unix_account(7), pam_unix_auth(7), and pam_unix_session(7).