If you have a basic setup with default configuration, the nis-drv-config copies the NIS password management PAM module to the PAM modules directory and updates the PAM configuration file. If the basic configuration is not found, the PAM configuration is not done. We strongly recommend that you manually update and verify the PAM configuration file to ensure that the custom configuration is not disturbed and the existing PAM configuration file satisfies the NIS PAM module requirements.
The PAM configuration involves copying the PAM module from the /usr/lib/dirxml/rules/nds2nis directory to the corresponding location on each of the following platforms:
Ensure that you modify the PAM configuration file in one of the following ways:
The /etc/pam.d/passwd file can have the following password management modules:
The /etc/pam.conf file can have the following password management modules:
: On Solaris you need to create a symbolic link, pam_dxml.so in /usr/lib/security, that points to /usr/lib/security/pam_dxml.so.1. The command is ln -s /usr/lib/security/pam_dxml.so.1 /usr/lib/security/pam_dxml.so
The /etc/pam.conf file can have the following password management modules:
Ensure that you have the following parameters with the correct values for the NIS driver's PAM module pam_dxml.so:
host=hostname: Specifies the name or IP address of the machine where NIS driver is running. This parameter will be empty if the PAM module and driver are installed on the same machine. If the IP address is of a remote machine, ensure that SSH is set up and it is possible to execute commands on a remote machine using SSH.
mapfilesdir=/var/yp/domainname: This is the path to the NIS maps.
db=files: Specifies the datastore. Values can be Files, NIS, or NIS+.
shadowmerged=false: Specifies whether the NIS database is configured to support shadow files or not. If a shadow file is present, the value of this parameter is false; otherwise, it is True.
use_first_pass: This tag is used to instruct the NIS PAM module not to prompt for a password and to get it from the previous module.