man pages section 5: Standards, Environments, and Macros
  Sök endast i den här boken
Visa den här boken i:
Ladda ner denna bok i PDF (1975 KB)

pam_unix_auth(5)

Name | Synopsis | Description | Errors | Attributes | See Also | Notes

Name

    pam_unix_auth– PAM authentication module for UNIX

Synopsis

    pam_unix_auth.so.1
    

Description

    The pam_unix_auth module implements pam_sm_authenticate(), which provides functionality to the PAM authentication stack. It provides functions to verify that the password contained in the PAM item PAM_AUTHTOK is the correct password for the user specified in the item PAM_USER. If PAM_REPOSITORY is specified, then user's password is fetched from that repository. Otherwise, the default nsswitch.conf(4) repository is searched for that user.

    For accounts in the name services which support automatic account locking, the account may be configured to be automatically locked (see user_attr(4) and policy.conf(4)) after multiple failed login attempts. For accounts that are configured for automatic locking, if authentication failure is to be returned, the failed login counter is incremented upon each failure. If the number of successive failures equals or exceeds RETRIES as defined in login(1), the account is locked and PAM_MAXTRIES is returned. Currently, only the “files” repository (see passwd(4) and shadow(4)) supports automatic account locking. A successful authentication by this module clears the failed login counter and reports the number of failed attempts since the last successful authentication.

    Authentication service modules must implement both pam_sm_authenticate() and pam_sm_setcred(). To allow replacability of the authentication portion of UNIX authentication, pam_sm_setcred() in this module always returns PAM_IGNORE. This module should be stacked with pam_unix_cred(5) to ensure a successful return from pam_setcred(3PAM).

    The following options can be passed to the module:

    nowarn

    Turn off warning messages.

    server_policy

    If the account authority for the user, as specified by PAM_USER, is a server, do not apply the Unix policy from the passwd entry in the name service switch.

    nolock

    Regardless of the automatic account locking setting for the account, do not lock the account, increment or clear the failed login count. The nolock option allows for exempting account locking on a per service basis.

Errors

    The following error codes are returned from pam_sm_authenticate():

    PAM_AUTH_ERR

    Authentication failure.

    PAM_BUF_ERR

    Memory buffer error.

    PAM_IGNORE

    Ignores module, not participating in result.

    PAM_MAXTRIES

    Maximum number of retries exceeded.

    PAM_PERM_DENIED

    Permission denied.

    PAM_SUCCESS

    Successfully obtains authentication token.

    PAM_SYSTEM_ERR

    System error.

    PAM_USER_UNKNOWN

    No account present for user.

    The following error codes are returned from pam_sm_setcred():

    PAM_IGNORE

    Ignores this module regardless of the control flag.

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE 

    ATTRIBUTE VALUE 

    Interface Stability 

    Committed 

    MT Level 

    MT-Safe with exceptions 

See Also

Notes

SunOS 5.10  Last Revised 4 Jan 2008

Name | Synopsis | Description | Errors | Attributes | See Also | Notes