Directory Service Logging

You can configure the information logged by a directory server, as described in "Configuring Logging" on page 213. By default, the directory server daemon logs information about connections and operations in
/var/opt/SUNWconn/ldap/log/slapd.log. The replication daemon and the LDAP/HTTP gateway daemon also maintain log files. These files, slurpd.log and web500gw.log, are stored in the same directory as the slapd log file.

In the event that you need more diagnostic ability than is provided by SIMS default Directory configuration, you may run slapd from a shell manually, providing additional diagnostics. See the -d and -s arguments to slapd, documented in slapd(8) man page. Note that running with additional diagnostics turned on will run slapd in the foreground, and will use up disk space quickly if you have all optional diagnostic output enabled.

If you are running SNMP monitoring for the directory service, there is also an snmpslapd.log file.

In addition, certain messages may be logged to the console of the machine on which slapd is running, and/or to /var/adm/messages.

TABLE 8-2 contains an example of the information that is logged during a search operation. This example shows two interactions with the directory, the first to add an entry, and the second to search the directory for all entries that have a commonName attribute. The log includes details of the bind and unbind, and operational information.

TABLE  8-2   slapd.log Example

 
Thu May 15 16:03: conn=9 fd=15 connection from unknown (127.0.0.1)
 
 
Thu May 15 16:03: conn=9 op=0 BIND dn="CN=admin,O=sun,C=us" method=128
 
 
Thu May 15 16:03: conn=9 op=0 RESULT err=0 tag=97 nentries=0
 
 
Thu May 15 16:03: conn=9 op=1 ADD dn="O=sun,C=us"
 
 
Thu May 15 16:03: conn=9 op=1 RESULT err=0 tag=105 nentries=0
 
 
Thu May 15 16:03: conn=9 op=2 UNBIND
 
 
Thu May 15 16:03: conn=9 op=2 fd=15 closed errno=0
 
 
Thu May 15 16:26: conn=10 fd=15 connection from unknown (127.0.0.1)
 
 
Thu May 15 16:26: conn=10 op=0 BIND dn="CN=admin,O=sun,C=us" method=128
 
 
Thu May 15 16:26: conn=10 op=0 RESULT err=0 tag=97 nentries=0
 
 
Thu May 15 16:26: conn=10 op=1 SRCH base="O=sun,C=us" scope=2 filter="(cn=*)"
 
 
Thu May 15 16:26: conn=10 op=1 RESULT err=0 tag=101 nentries=150
 
 
Thu May 15 16:26: conn=10 op=-1 fd=15 closed errno=0
 
 
Thu May 15 16:26: conn=10 op=2 UNBIND
 




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.