Chapter 5. Authentication
5.1. Implementing PAM Authentication Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Red Hat Satellite supports network-based authentication systems such as LDAP and Kerberos, using Pluggable Authentication Modules (PAM). PAM is a suite of libraries that helps system administrators integrate the Satellite with a centralized authentication mechanism, thus eliminating the need for remembering multiple passwords.
Note
To ensure that PAM authentication functions properly, install the
pam-devel
package.
yum install pam-devel
# yum install pam-devel
Also make sure to update to the latest
selinux-policy-targeted
package.
yum update selinux-policy-targeted
# yum update selinux-policy-targeted
Procedure 5.1. Configuring Red Hat Satellite to use PAM
- Set the
allow_httpd_mod_auth_pam
SELinux boolean to on:setsebool -P allow_httpd_mod_auth_pam 1
# setsebool -P allow_httpd_mod_auth_pam 1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Open the
/etc/rhn/rhn.conf
file in your preferred text editor, and add the following line:pam_auth_service = rhn-satellite
pam_auth_service = rhn-satellite
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a PAM service file in the/etc/pam.d/
directory:touch /etc/pam.d/rhn-satellite
# touch /etc/pam.d/rhn-satellite
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Edit the file and add one of the following, depending on your authentication method:
Example 5.1. SSSD Authentication
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example 5.2. Kerberos Authentication
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example 5.3. LDAP Authentication
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For more detail about configuring PAM, see the Pluggable Authentication Modules (PAM) in the Red Hat Enterprise Linux Deployment Guide.Note
For Kerberos-authenticating users, change the password by usingkpasswd
. Do not change the password on Red Hat Satellite web application as this method only changes the local password on the Satellite server. Local passwords are not in use if PAM is enabled for that user. - Restart the service to pick up the changes:
rhn-satellite restart
# rhn-satellite restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To enable a user to authenticate against PAM, select the checkbox labeled Pluggable Authentication Modules (PAM). It is positioned below the password and password confirmation fields on the Create User page.