Common Connection Codes
Chapter 5 Access Log and Connection Code Reference 221
Common Connection Codes
A connection code is a code that is added to the
closed
log message to provide
additional information related to the connection closure. Common connection
codes include:
•
A1
= Client aborts the connection.
•
B1
= Corrupt BER tag encountered. If BER tags, which encapsulate data being
sent over the wire, are corrupt when they are received, a
B1
connection code is
logged to the access log. BER tags can be corrupted due to physical layer
network problems or bad LDAP client operations, such as an LDAP client
aborting before receiving all request results.
•
B2
= BER tag is longer than the
nsslapd-maxbersize
attribute value. For
further information about this configuration attribute, see
“nsslapd-maxbersize (Maximum Message Size),” on page 68.
•
B3
= Corrupt BER tag encountered.
•
B4
= Server failed to flush data response back to client.
•
P2
= Closed or corrupt connection has been detected.
•
T1
= Client does not receive a result within the specified
idletimeout
period.
•
T2
= Server closed connection after
ioblocktimeout
period was exceeded.
•
U1
= Connection closed by server after client sends an UNBIND request. The
server will always close the connection when it sees an UNBIND request.
LDAP Result Codes
LDAP has a set of result codes with which it is useful to be familiar.
Code Example 5-4 Access Log Extract with Internal Access Operation, Entry Access
and Referral Logging Levels (Levels 4+512)
[12/Jul/2005:16:45:46 +0200] conn=Internal op=-1 ENTRY
dn="cn=\22dc=example,dc=com\22, cn=mapping tree, cn=config"
[12/Jul/2005:16:45:46 +0200] conn=Internal op=-1 ENTRY
dn="cn=\22dc=example,dc=com\22, cn=mapping tree, cn=config"