IBM InfoSphere Federation Server, Version 10.1

Developing a user mapping plug-in (Java programming language)

Use the sample code as a starting point to develop a Java™ plug-in that retrieves user mappings from an external repository. The sample code retrieves mappings from an LDAP repository, but you can modify the code to access any external repository.

Before you begin

Verify the following:
  • The Java Development Kit (JDK) version 1.4 or later is installed.
  • The db2umplugin.jar file. This Java Archive (JAR) file is installed as part of the DB2® server installation or the DB2 client installation.
  • The sample user mapping plug-in files are installed. These files, which are installed as part of the DB2 client installation, are in the sqllib/samples/federated/umplugin/ldap/ directory.
  • The java_heap_sz parameter is set to 2048.

About this task

The plug-in that you develop must be able to connect to the external repository, retrieve user mappings, and decrypt remote passwords. The repository that you use determines how you code the plug-in. For example, if you use an LDAP repository that stores encrypted passwords, the plug-in must contain the encryption schema and the secret key that is required to decode the passwords.

Be aware that as you develop and use the plug-in, you send sensitive user IDs and passwords between multiple sources. To protect this information, restrict access to the plug-in source code, and configure the db2audit facility to capture a VALIDATE record in the diagnostic log file, db2diag.log, each time that the federated server uses the plug-in. The diagnostic log file is useful not only for tracking usage but also for troubleshooting any problems that occur.

To develop a plug-in, complete these tasks:



Feedback

Update icon Last updated: 2012-05-18