pam_acct_mgmt(3pam) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

pam_acct_mgmt(3pam)

pam_acct_mgmt(3PAM)          PAM Library Functions         pam_acct_mgmt(3PAM)

NAME
       pam_acct_mgmt - perform PAM account validation procedures

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

       int pam_acct_mgmt(pam_handle_t *pamh, int flags);

DESCRIPTION
       The  pam_acct_mgmt() function is called to determine if the current au‐
       thenticated user's  account  is  valid.  This  includes  the  following
       checks:

           o      Password expiry


           o      If the password needs to be changed


           o      Account expiry


           o      Account inactivity


           o      If the account is locked


           o      The  /etc/nologin file is not present, unless the user has a
                  uid of 0, has the root role, or is assigned the solaris.sys‐
                  tem.maintenance authorization (see nologin(5))



       The pam_acct_mgmt() function is typically called  after  the  user  has
       been authenticated with pam_authenticate(3PAM).


       The  pamh argument is an authentication handle obtained by a prior call
       to pam_start(). The following flags may be set in the flags field:

       PAM_SILENT                   The account management service should  not
                                    generate any messages.


       PAM_DISALLOW_NULL_AUTHTOK    The  account management service should re‐
                                    turn PAM_NEW_AUTHTOK_REQD if the user  has
                                    a null authentication token.


RETURN VALUES
       Upon successful completion, PAM_SUCCESS is returned. In addition to the
       error return values described in pam(3PAM), the following values may be
       returned:

       PAM_USER_UNKNOWN        User not known to underlying account management
                               module.


       PAM_AUTH_ERR            Authentication failure.


       PAM_NEW_AUTHTOK_REQD    New authentication token required. This is nor‐
                               mally returned if the machine security policies
                               require that the password should be changed be‐
                               cause the password is null or has aged.


       PAM_ACCT_EXPIRED        User account has expired.


       PAM_LOGINS_DISABLED     Logins  for non-root/maintenance users are dis‐
                               abled due to the presence of  the  /etc/nologin
                               file. See nologin(5).


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe with ex‐
       ceptions



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

SEE ALSO
       libpam(3LIB), pam(3PAM), pam_authenticate(3PAM), pam_start(3PAM), nolo‐
       gin(5), attributes(7)

HISTORY
       Support  for  checking  for  /etc/nologin  in  pam_acct_mgmt()  and the
       PAM_LOGINS_DISABLED return value was added in Solaris 11.2.0.


       The pam_acct_mgmt() function was introduced in Solaris 2.6.

Oracle Solaris 11.4               15 Mar 2023              pam_acct_mgmt(3PAM)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3