pam_krb5_migrate(7) 맨 페이지 - 윈디하나의 솔라나라

개요

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

pam_krb5_migrate(7)

pa...e(7)Standards, Environments, Macros, Character Sets, and miscellanpya...e(7)

NAME
       pam_krb5_migrate  -  authentication PAM module for the KerberosV5 auto-
       migration of users feature

SYNOPSIS
       pam_krb5_migrate.so.1 [debug] [client_service=service-name] [quiet]
            [expire_pw]

DESCRIPTION
       The KerberosV5 auto-migrate service module for PAM provides functional‐
       ity for the PAM authentication component. The service module  helps  in
       the  automatic  migration  of  PAM_USER  to the client's local Kerberos
       realm, using PAM_AUTHTOK (the PAM authentication token associated  with
       PAM_USER) as the new Kerberos principal's password.

   KerberosV5 Auto-migrate Authentication Module
       The  KerberosV5  auto-migrate  authentication  component  provides  the
       pam_sm_authenticate(3PAM) function to migrate a user who does not  have
       a corresponding krb5 principal account to the default Kerberos realm of
       the client.


       pam_sm_authenticate(3PAM)  uses  a host-based client service principal,
       present in the local keytab (/etc/krb5/krb5.keytab) to authenticate  to
       kadmind(8)  (defaults to the host/nodename.fqdn service principal), for
       the principal creation operation. Also, for successful creation of  the
       krb5  user  principal  account, the host-based client service principal
       being used needs to be assigned the appropriate privilege on the master
       KDC's kadm5.acl file. kadmind(8) checks for the  appropriate  privilege
       and  validates  the  user  password  using PAM by calling pam_authenti‐
       cate(3PAM) and pam_acct_mgmt(3PAM) for the k5migrate service.


       If migration of the user to the KerberosV5 infrastructure  is  success‐
       ful,  the module will inform users about it by means of a PAM_TEXT_INFO
       message, unless instructed otherwise by the presence of the  quiet  op‐
       tion.


       The  authentication component always returns PAM_IGNORE and is meant to
       be stacked in the PAM configuration (see pam.conf(5)) with  a  require‐
       ment  that  it be listed below pam_authtok_get(7) in the authentication
       stack. Also, if pam_krb5_migrate is used in the authentication stack of
       a particular service, it is mandatory that pam_krb5(7) be listed in the
       PAM account stack of that service for proper operation (see  the  exam‐
       ples below).

OPTIONS
       The  following options can be passed to the KerberosV5 auto-migrate au‐
       thentication module:

       debug

           Provides syslog(3C) debugging information at LOG_DEBUG level.


       client_service=service-name

           Name of the service used to authenticate to kadmind(8) defaults  to
           host.  This  means  that  the module uses host/nodename.fqdn as its
           client service principal name, KerberosV5 user  principal  creation
           operation or service-name/nodename.fqdn if this option is provided.


       quiet

           Do not explain KerberosV5 migration to the user.

           This  has  the  same  effect  as  passing  the  PAM_SILENT  flag to
           pam_sm_authenticate(3PAM) and is useful where  applications  cannot
           handle PAM_TEXT_INFO messages.

           If not set, the authentication component will issue a PAM_TEXT_INFO
           message  after  creation  of  the Kerberos V5 principal, indicating
           that it has done so.


       expire_pw

           Causes the creation of KerberosV5 user principals with password ex‐
           piration set to now (current time).


EXAMPLES
       Example 1 Sample PAM entries for the pam_krb5_migrate.so.1 module



       The  following  pam.conf(5)  entries  demonstrate  the   use   of   the
       pam_krb5_migrate.so.1 module:


         login       auth requisite          pam_authtok_get.so.1
         login       auth required           pam_unix_cred.so.1
         login       auth sufficient         pam_krb5.so.1
         login       auth requisite          pam_unix_auth.so.1
         login       auth optional           pam_krb5_migrate.so.1 expire_pw

         other   account requisite       pam_roles.so.1
         other   account required        pam_krb5.so.1
         other   account required        pam_unix_account.so.1




       The  equivalent PAM configuration in /etc/pam.d/ would be the following
       entries in /etc/pam.d/login:


         auth    requisite          pam_authtok_get.so.1
         auth    required           pam_unix_cred.so.1
         auth    sufficient         pam_krb5.so.1
         auth    requisite          pam_unix_auth.so.1
         auth    optional           pam_krb5_migrate.so.1 expire_pw




       and the following entries in /etc/pam.d/other:


         account requisite              pam_roles.so.1
         account required               pam_krb5.so.1
         account required               pam_unix_account.so.1




       The pam_krb5_migrate module can generally be present on the authentica‐
       tion stack of any service where the application calls  pam_sm_authenti‐
       cate(3PAM)  and  an authentication token (in the preceding example, the
       authentication token would be the user's UNIX  password)  is  available
       for use as a Kerberos V5 password.

       Example 2 Sample Entries from kadm5.acl



       The  following  entries from kadm5.acl permit or deny privileges to the
       host client service principal:


         host/*@EXAMPLE.COM U root
         host/*@EXAMPLE.COM ui *




       The preceding entries permit the pam_krb5_migrate  add privilege to the
       host client service principal of any machine in  the  EXAMPLE.COM  Ker‐
       berosV5 realm, but denies the add privilege to all host service princi‐
       pals for addition of the root user account.

       Example 3 Sample PAM entries for the Master KDC



       The  /etc/pam.conf entries below enable kadmind(8) on the master KDC to
       use the k5migrate PAM service in order to validate UNIX user  passwords
       for accounts that require migration to the Kerberos realm.


         k5migrate        auth    required        pam_unix_auth.so.1
         k5migrate        account required        pam_unix_account.so.1




       The  equivalent PAM configuration in /etc/pam.d/ would be the following
       entries in /etc/pam.d/k5migrate:


         auth    required        pam_unix_auth.so.1
         account required        pam_unix_account.so.1


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  _  Availabilityservice/security/kerberos-5  _ Interface
       StabilityCommitted


SEE ALSO
       syslog(3C), pam_acct_mgmt(3PAM), pam_authenticate(3PAM), pam_sm_authen‐
       ticate(3PAM),  pam.conf(5),   attributes(7),   kerberos(7),   pam_auth‐
       tok_get(7), pam_krb5(7), kadmind(8)

HISTORY
       The  pam_krb5_migrate  module was introduced in the Solaris 10 3/05 re‐
       lease, and backported to patches for Solaris 9.

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