O'Reilly logo

Understanding DB2® 9 Security: DB2® Information Management Software by Yuk-Kuen Henry Chan, Carmen Ka Man Wong, Kevin Yeung-Kuen See, Rebecca Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required