![]() |
![]() |
| |
Chapter 10Using PAMThis chapter covers the Pluggable Authentication Module (PAM) framework. PAM provides a method to "plug in" authentication services and provides support for multiple authentication services. PAM (Overview)The Pluggable Authentication Module (PAM) framework lets you "plug in" new authentication technologies without changing system entry services, such as login, ftp, telnet, and so on. You can also use PAM to integrate UNIX login with other security mechanisms like Kerberos. Mechanisms for account, session, and password management can also be "plugged in" by using this framework. Benefits of Using PAMThe PAM framework allows you to configure the use of system entry services (ftp, login, telnet, or rsh, for example) for user authentication. Some benefits that PAM provides are as follows:
PAM ComponentsThe PAM software consists of a library, several modules, and a configuration file. New versions of several commands or daemons that take advantage of the PAM interfaces are also included. The following figure illustrates the relationship between the applications, the PAM library, the pam.conf file, and the PAM modules. Figure 10-1 How PAM Works ![]() The applications, such as ftp, telnet, and login, use the PAM library to call they configuration policy. The pam.conf file defines which modules to use, and in what order the modules are to be used with each application. Responses from the modules are passed back through the library to the application. The following sections describe the relationship between the PAM components and the applications. PAM LibraryThe PAM library provides the framework to load the appropriate modules and to manage the stacking process. The PAM library provides a generic structure to which all of the modules can plug in. See the pam.3PAM XREF man page for more information. Password-Mapping FeatureThe stacking feature can require that a user remembers several passwords. With the password-mapping feature, the primary password is used to decrypt the other passwords. The user does not need to remember or enter multiple passwords. The other option is to synchronize the passwords across each authentication mechanism. This strategy could increase the security risk, because the mechanism security is limited by the least secure password method that is used in the stack. Changes to PAM for the Solaris 9 ReleaseThe Solaris 9 release includes several enhancements to the PAM service. The following list highlights the most important changes:
Changes to PAM for the Solaris 9 Update 2 ReleaseUpdate 2 includes a new binding control flag. This flag provides the ability to skip additional authentication if the service module returns success and if no preceding required modules have failed. The control flag is documented in the pam.conf(4) man page and in PAM Control Flags. PAM (Tasks)This section discusses some tasks that might be required to make the PAM framework fully functional. In particular, you should be aware of some security issues that are associated with the PAM configuration file. | |
| |