Creating the configuration file for the user mapping plug-in (Java programming language)

The configuration file stores the connection information that the Java™ plug-in uses to connect to the LDAP server.

About this task

To create the configuration file, run the configuration program, which prompts you for this information:
  • Host name or IP address of the LDAP server
  • Port number of the LDAP server (default is 389)
  • Distinguished name of the LDAP subtree (for example, ou=ii,o=ibm,c=us)
  • User ID for connecting to the LDAP server
  • Password for connecting to the LDAP server
  • SSL configuration

The input that you provide is used to create the UserMappingRepositoryLDAP.cfg file, which stores configuration information. If a password is required to connect to the LDAP server, the password is encrypted with the algorithm that you specify in the UserMappingCryptoLDAP.java file.

In the commands below, if the full path contains spaces, then you must enclose the full path in quotation marks, for example, "C:\program files\sqllib\java\db2umplugin.jar". %DB2PATH% is the directory where the database is installed, for example, C:\ProgramFiles\IBM\sqllib. inst_home is the instance home directory.

To create the configuration file for the sample LDAP plug-in:

Windows:
java -classpath "%DB2PATH%\java\db2umplugin.jar; ^
 .\UserMappingRepositoryLDAP.jar;%CLASSPATH%" UserMappingSetupLDAP
UNIX:
java -classpath inst_home/sqllib/java/db2umplugin.jar: \
 ./UserMappingRepositoryLDAP.jar:$CLASSPATH UserMappingSetupLDAP