Search This Blog

Install nsscache on CentOS 6

  1. Download the latest rpmforge-release rpm from http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/
  2. Install rpmforge-release rpm:
    • rpm -Uvh rpmforge-release*rpm
      
  3. Install nsscache rpm package:
    • yum install nsscache
      
  4. edit /etc/nsscache.conf to set up which system databases you wish to synchronise, and to set local configuration parameters.
  5. run following command to perform a full update
    • nsscache update --full
      
  6. run following command to confirm that the system is configured:
    • nsscache verify
      
  7. edit /etc/nsswitch.conf to point your local database to use the cache nss module, or the db module.
    • passwd:     files ldap [NOTFOUND=return] db
      shadow:     files ldap [NOTFOUND=return] db
      group:      files ldap [NOTFOUND=return] db
      
  8. Run
    getent passwd 
    
    to test if the entries are pulled from the server
See also nsscache official web site

No comments:

Post a Comment