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
- Assign all the function addresses to the function pointers.
- Set
plugintype = DB2SEC_PLUGIN_TYPE_GROUP
. - 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 filedb2secPlugin.h
).
Listing I.1. A Sample Listing for the db2secGroupPluginInit
API
Get Understanding DB2® 9 Security: DB2® Information Management Software now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.