NSSCACHE.CONF(5) | File formats | NSSCACHE.CONF(5) |
NAME¶
nsscache.conf - NSS local cache synchroniser configuration fileSYNOPSIS¶
/etc/nsscache.confDESCRIPTION¶
nsscache synchronises a local NSS cache against a remote data source. This approach allows the administrator to separate the network from the NSS lookup codepath, improving speed and reliability of name services.DEFAULT-only OPTIONS¶
- source
- Specifies the source to use to retrieve NSS data from.
- cache
- Specifies the cache method to use to store the data, which
will be queried by the NSS itself.
- maps
- Specifies the names of the maps that will be queried and
cached by nsscache
- timestamp_dir
- Specifies the directory where update and modify timestamps
are stored.
ldap SOURCE OPTIONS¶
These options configure the behaviour of the ldap source.- ldap_uri
- The LDAP URI to connect to.
- ldap_base
- The base to perform LDAP searches under.
- ldap_filter
- The search filter to use when querying.
- ldap_scope
- The search scope to use. Defaults to one
- ldap_bind_dn
- The bind DN to use when connecting to LDAP. Emtpy string is
an anonymous bind. Defaults to the empty string.
- ldap_bind_password
- The bind password to use when connecting to LDAP. Empty
string is used for anonymous binds. Defaults to the empty string.
- ldap_timelimit
- Timelimit in seconds for search results to return. -1 means
no limit. Defaults to -1.
- ldap_retry_max
- Number of retries on soft failures before giving up.
Defaults to 3.
- ldap_retry_delay
- Delay in seconds between retries. Defaults to 5.
- ldap_tls_require_cert
- Sets expectations for SSL certificates, using TLS. One of
'never', 'hard', 'demand', 'allow', or 'try'. See ldap.conf(5) for
more information.
- ldap_tls_cacertdir
- Directory for trusted CA certificates. Defaults to
/usr/share/ssl
- ldap_tls_cacertfile
- Filename containing trusted CA certificates. Defaults to
/usr/share/ssl/cert.pem
nssdb CACHE OPTIONS¶
These options configure the behaviour of the nssdb cache.- nssdb_dir
- Directory to store the Berkeley DB databases. Defaults to
the current directory. Note that nss_db hardcodes the path to
/var/lib/misc on Debian systems, and /var/db on Red Hat
systems.
- nssdb_makedb
- Path to the makedb(1) command, which is used by the
nssdb cache code to ensure that the Berkeley DB version created by the
module matches that expected by the nss_db NSS module.
files CACHE OPTIONS¶
These optiosn configure the behaviour of the files cache.- files_dir
- Directory location to store the plain text files in.
Defaults to the current directory.
- files_cache_filename_suffix
- A suffix appended to the cache filename to differentiate it
from, say, system NSS databases. Defaults to '.cache'.
- files_local_automount_master
- A yes/no field only used for automount maps. A 'yes' value
will cause nsscache to update the auto.master file with the master map
from the source. A 'no' value will cause nsscache to leave auto.master
alone, allowing the system to manage this file in other ways. When set to
'no', nsscache will only update other automount maps defined both locally
and in the source. Defaults to 'yes'.
EXAMPLE¶
A typical example might look like this:[DEFAULT]
source = ldap
cache = nssdb
maps = passwd, group, shadow
ldap_uri = ldap://ldap.example.com
ldap_base = ou=People,dc=example,dc=com
ldap_filter = (objectclass=posixAccount)
nssdb_dir = /var/lib/misc
[group]
ldap_base = ou=Group,dc=example,dc=com
ldap_filter = (objectclass=posixGroup)
[shadow]
ldap_filter = (objectclass=posixAccount)
passwd: files db
group: files db
shadow: files db
FILES¶
- /etc/nsscache.conf
- The system-wide nsscache configuration file
SEE ALSO¶
- nsswitch.conf(5)
- The system name service switch configuration file
- ldap.conf(5)
- Details on LDAP configuration options exposed by the LDAP client libraries.
AUTHOR¶
Written by Jamie Wilkinson (jaq@google.com) and Vasilios Hoffman (vasilios@google.com).COPYRIGHT¶
Copyright © 2007 Google, Inc.2008-11-19 | nsscache 0.8.5 |