Appendix I. Detailed Implementation for the Case Study in Chapter 3

Group Plug-In

To implement a group plug-in, application programming interfaces (APIs) are required. Note that when DB2 called the Init function, it passed a callback function db2secLogMessage where the plug-in code can log debugging or diagnostic information to db2diag.log.

db2secGroupPluginInit

  1. Assign all the function addresses to the function pointers.
  2. Set plugintype = DB2SEC_PLUGIN_TYPE_GROUP.
  3. Set the version based on the version of the security plug-in API you are using. It is suggested that you use the latest version number (that is, the define DB2SEC_API_VERSION from the header file db2secPlugin.h).

Listing I.1. A Sample Listing for the db2secGroupPluginInit API

Get Understanding DB2® 9 Security: DB2® Information Management Software now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.