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.
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: