LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS
tear-down can cause relatively severe delays for client response. However, a persistent connection
to the directory server will eliminate this delay.
In the ldapclientd daemon, a pool of active connections is maintained to serve requests from
NSS. If the NSS needs to perform a request to the directory server, one of the free connections in
this pool will be used. If there are no free connections in the pool, a new connection will be
established, and added to the pool. If system activity is low, then connections that have been idle
for a specified period of time (configurable in the ldapclientd.conf file) will be dropped to
free up directory server resources.
Aside from ldapclientd daemon connection time-out configuration, it is also possible to define
a maximum number of connections that ldapclientd may establish. Setting a high number of
connections means assures that ldapclientd will not become a bottleneck in performing name
service operations to the directory server. However, a high number of connections from a large
number of HP-UX clients to the same directory server might exhaust all available connection resources
on that directory server. Setting a low number of maximum connections will reduce that resource
requirement on the directory server, but might create a performance bottleneck in the ldapclientd.
7.13 Troubleshooting
This section describes troubleshooting techniques and problems you might encounter.
7.13.1 Enabling and disabling LDAP-UX logging
When something is behaving incorrectly, enabling logging is one way to examine the events that
occur to determine where the problem is. Enable LDAP-UX Client Services logging on a particular
client as follows:
1. Edit the local startup file /etc/opt/ldapux/ldapux_client.conf and uncomment the
lines starting with #log_facility and #log_level by removing the initial # symbol. You can set
log_level to LOG_INFO to log only unusual events. This is a good place to start. If LOG_INFO
is not adequate to identify the problem, set log_level to LOG_DEBUG to log trace information.
LOG_DEBUG will provide more information but will significantly reduce performance and
generate large log files on active systems.
2. Edit the file /etc/syslog.conf and add a new line at the bottom:
local0.debug <tab> /var/adm/syslog/local0.log
where <tab> is the Tab key on your keyboard.
3. Restart the syslog daemon with the following command (for more information about this
command, see the syslogd(1M) manpage):
kill -HUP 'cat /var/run/syslog.pid'
4. Once logging is enabled, run the HP-UX commands or applications that exhibit the problem.
5. Disable logging by commenting out the log_facility and log_level lines in the startup file /etc/
opt/ldapux/ldapux_client.conf. Comment them out by inserting a "#" symbol in the
first column.
6. Examine the log file at /var/adm/syslog/local0.log to see what actions were performed
and if any are unexpected. Look for functions with "ldap_." These are standard LDAP function
calls.
7.13 Troubleshooting 251