- Execute the following authchanger command to enable PAM authentication with Jamf Connect:
/usr/local/bin/authchanger -DefaultJCRight - In Terminal, access the PAM configuration profile by executing the following command:
sudo vi /etc/pam.d/sudo - Enter your local password.
- Enter edit mode and do one of the following:Note:
A warning may display when attempting to edit a read-only file. Continue to edit the file, and then refer to step 5 to save your changes.
- To allow (but not require) network authentication for
sudocommands, add the following entry:auth sufficient pam_saml.so - To require network authentication for
sudocommands, do the following:Add the following entry:
auth required pam_saml.soComment out the
pam_opendirectory.soentry by adding a pound symbol (#) at the beginning of that line.
- To allow (but not require) network authentication for
- Press the Escape key to exit the editor mode, and then write and quit the read-only file by executing the following command at the bottom of the Terminal window: :wq!
Your cursor automatically moves to the bottom of the Terminal window after you exit editor mode.
- Configure PAM module preferences in your login window configuration profile.
The PAM module should now prompt users to authenticate with your IdP any time a sudo command is attempted.