Adapter for Enterprise JavaBeans 6.5 SP3 | webMethods Adapter for Enterprise JavaBeans Documentation | webMethods Adapter for Enterprise JavaBeans Installation and User’s Documentation | Overview of webMethods Adapter for Enterprise JavaBeans | Adapter Connections | JNDI Properties File | Specifying JNDI Credentials
 
Specifying JNDI Credentials
If your JNDI server requires authentication, you can use the following properties to set a username and password for access to the JNDI server:
*java.naming.security.principal=username
*java.naming.security.credentials=password
You can either include the properties and values in the JNDI properties file or you can specify the values when you configure an adapter connection. Do not use a combination of these two methods: enter both properties in a JNDI properties file or specify them both when configuring an adapter connection.
To specify the credentials when configuring a connection, use the JNDI Username parameter and the JNDI Password parameter on the Connection Types screen, as follows:
*If you specify a username in the JNDI Username parameter, this value is assigned to the java.naming.security.principal property. If this property is also included in the JNDI properties file, the value in the JNDI Username parameter overrides the value in the properties file.
*If you specify a password in the JNDI Password parameter, this value is assigned to the java.naming.security.credentials property. If this property is also included in the JNDI properties file, the value in the JNDI Password parameter overrides the value in the properties file.
Providing the JNDI password in the JNDI Password parameter is more secure than defining the password in the JNDI properties file. This is because Integration Server Administrator automatically encrypts the value in the JNDI Password parameter. The JNDI properties file, on the other hand, is never encrypted. The password will be in clear text and can be seen by any user having the appropriate access to that file within the local operating system.
For information about these parameters on the Connection Types screen, see the instructions in Configuring Adapter Connections. For additional information about JNDI security credentials, see Application Server Configuration Notes, and see the section for your application server.