Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

ldap_cachemgr(8)

Name

ldap_cachemgr - LDAP daemon to manage client configuration for LDAP based Network Information Service lookups

Synopsis

/usr/lib/ldap/ldap_cachemgr [-l 
log-file] [-g] [-d 
value]

Description

The ldap_cachemgr daemon is a process that provides an up-to-date configuration cache for LDAP naming services. It is started during multi-user boot.

The ldap_cachemgr utility provides caching for all parameters as specified and used by the LDAP naming service clients. The ldap_cachemgr utility uses the cache files which are originally created by executing the ldapclient(8) utility, as cold start files. Updates to the cache files take place dynamically if profiles are used to configure the client. See the –init option to ldapclient(8).

The ldap_cachemgr utility helps improve the performance of the clients that are using LDAP as the Naming service repository. In order for the LDAP naming services to function properly, the ldap_cachemgr daemon must be running. ldap_cachemgr also improves system security by making the configuration files readable by superuser only.

The cache maintained by this daemon is shared by all the processes that access LDAP Naming information. All processes access this cache through a door call. On startup, ldap_cachemgr initializes the cache from the cache files. See ldapclient(8). Thus, the cache survives machine reboots.

The ldap_cachemgr daemon also acts as its own administration tool. If an instance of ldap_cachemgr is already running, commands are passed transparently to the running version.

Options

The following options are supported:

–g

Print current configuration and statistics to standard output. This is the only option executable without superuser privileges.

–l log-file

Cause ldap_cachemgr to use a log file other than the default /var/ldap/cachemgr.log.

–d value

Enable or disable debugging in the running ldap_cachemgr sending any debug output into the current log file, by default /var/ldap/cachemgr.log. The value of 0 disables debugging and the values 1 through 6 display increasingly more detailed information.

Examples

Example 1 Stopping and Restarting the ldap_cachemgr Daemon

The following example shows how to stop and to restart the ldap_cachemgr daemon.

example# svcadm disable network/ldap/client
example# svcadm enable network/ldap/client
Example 2 Forcing ldap_cachemgr to Reread Configuration Files

The following example shows how to force ldap_cachemgr to reread the /var/ldap/ldap_client_file and /var/ldap/ldap_client_cred files

example# pkill -HUP ldap_cachemgr

Files

/var/ldap/cachemgr.log

Default log file.

/var/ldap/ldap_client_file
/var/ldap/ldap_client_cred

Files containing the LDAP configuration of the client. These files are not to be modified manually. Their content is not guaranteed to be human readable. Use ldapclient(8) to update these files.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/network/ldap

See Also

ldaplist(1), pkill(1), svcs(1), signal.h(3HEAD), resolv.conf(5), attributes(7), ldap(7), smf(7), idsconfig(8), ldapaddent(8), ldapclient(8), svcadm(8)

Notes

The ldap_cachemgr service is managed by the service management facility, smf(7), under the service identifier:

svc:/network/ldap/client

Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(8). The service's status can be queried using the svcs(1) command.