LDAP is a request-response protocol with the exception of the unsolicited notification. The unsolicited notification is a transmission from the server to a connected LDAP client. LDAP clients should be prepared to handle the unsolicited notification because the notification is sent when an extraordinary condition has transpired. LDAP clients that do not handle unsolicited notifications risk not receiving important information from the server.
The unsolicited notification is transmitted in the form of an extended response.
Notice of Disconnection
One standardized notification is the notice of disconnection. The object identifier contained in the extended response is
188.8.131.52.4.1.1466.20036, the response value field is absent, and the result code contains the reason for the disconnection.
Aborted Transaction Notification
Transactions provide a notification for aborted transactions.
The class UnsolicitedNotification.java shows how to use the UnboundID LDAP SDK to handle an unsolicited notification.