Patent ID: 7774428

Claim:
A method, in a Lightweight Directory Access Protocol (LDAP) server, for measuring a response time of the LDAP server with regard to an LDAP transaction, comprising: loading, in the LDAP server, a pre-operation plug-in module having a first function for starting a timer; loading, in the LDAP server, a post-operation plug-in module having a second function for stopping the timer; receiving, in the LDAP server, a request for an LDAP operation; calling, by the LDAP server, the first function in the pre-operation plug-in module to start the timer in response to receiving the request for the LDAP operation; storing, by the LDAP server, a correlation token generated by the pre-operation plug-in module and a started timestamp taken by the pre-operation plug-in module in an operation log upon starting the timer; passing, by the LDAP server, the correlation token to the post-operation plug-in module; performing, by the LDAP server, the requested LDAP operation after calling the first function; calling, by the LDAP server, the second function in the post-operation plug-in module to stop the timer in response to completion of the LDAP operation; storing, by the LDAP server, the correlation token and a stopped timestamp taken by the post-operation plug-in module in the operation log upon stopping the timer; and measuring, by the LDAP server, a response time for the LDAP operation based on a difference between the started timestamp and the stopped timestamp using the correlation token to identify related timestamps in a plurality of timestamps stored in the operation log, wherein the pre-operation plug-in module and post-operation plug-in module constitute a pair of plug-in modules and wherein a separate pair of plug-in modules is loaded for individual ones of client accessible LDAP operations in a plurality of LDAP operations received from an LDAP client.