

CA Risk Authentication UNIX Installation Guide › Application Server Configuration for Database Connection Pooling › Enable LDAP Connection Pooling
Enable LDAP Connection Pooling
It covers the configuration steps for the following application servers.
Apache Tomcat
To create a LDAP connection pool, do the following steps:
- Install the Apache Tomcat application server and test the installation by using the following URL:
http://localhost:8080/
- Navigate to the following location:
<TOMCAT-HOME>\conf\
- Open the catalina.properties file in a text editor.
- Add the following entries to the file:
- com.sun.jndi.ldap.connect.pool.protocol=plain ssl
- com.sun.jndi.ldap.connect.pool.authentication=simple
- com.sun.jndi.ldap.connect.pool.maxsize=64
- com.sun.jndi.ldap.connect.pool.prefsize=32
- com.sun.jndi.ldap.connect.pool.timeout=240000
- com.sun.jndi.ldap.connect.pool.initsize=8
- Save and close the file.
- Restart the application server.
IBM WebSphere
Perform the following steps to create a LDAP connection pool:
- Log in to WebSphere Administration Console.
- Navigate to Servers, Server Types, WebSphere application servers.
- Click the Server that you want to configure.
- In the Server Infrastructure section, click Java and Process Management.
- Click the Process Definition link.
- In the Additional Properties section, click Java Virtual Machine.
- In the Additional Properties section, click Custom Properties.
- Click New to add custom properties.
- Add the configurations listed in the following table as name-value pairs in the General Properties section. You have to repeat the process for every name-value pair.
|
Name
|
Value
|
|
com.sun.jndi.ldap.connect.pool.maxsize
|
64
|
|
com.sun.jndi.ldap.connect.pool.prefsize
|
32
|
|
com.sun.jndi.ldap.connect.pool.initsize
|
8
|
|
com.sun.jndi.ldap.connect.pool.timeout
|
240000
|
|
com.sun.jndi.ldap.connect.pool.protocol
|
plain ssl
|
|
com.sun.jndi.ldap.connect.pool.authentication
|
simple
|
- Click Apply.
- Restart WebSphere.
Oracle WebLogic
Include LDAP Options in Startup Script
This section provides the steps to include the LDAP connection pool parameters in WebLogic server startup script:
- Log in to the system
- Create a backup copy of the WebLogic Server startup script. This script is available at the following location:
domain-name\bin\startWebLogic.cmd
- Open the script in a text editor.
- Add the following entries in the section that is used to start the WebLogic server.
- -Dcom.sun.jndi.ldap.connect.pool.maxsize=64
- -Dcom.sun.jndi.ldap.connect.pool.prefsize=32
- -Dcom.sun.jndi.ldap.connect.pool.initsize=8
- -Dcom.sun.jndi.ldap.connect.pool.timeout=240000
- -Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl"
- -Dcom.sun.jndi.ldap.connect.pool.authentication=simple
The following code snippet shows a sample script with LDAP connection pool parameters:
@REM START WEBLOGIC
echo starting weblogic with Java version:
%JAVA_HOME%\bin\java %JAVA_VM% -version
if "%WLS_REDIRECT_LOG%"=="" (
echo Starting WLS with line:
echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS%
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dcom.sun.jndi.ldap.connect.pool.maxsize=64 -Dcom.sun.jndi.ldap.connect.pool.prefsize=32 -Dcom.sun.jndi.ldap.connect.pool.initsize=8 -Dcom.sun.jndi.ldap.connect.pool.timeout=240000 -Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl" -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS%
) else (
echo Redirecting output from WLS window to %WLS_REDIRECT_LOG%
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1
)
- Save and close the file.
- Restart WebLogic Server.
Specify LDAP Pool Options Using Managed Server
- Log in to WebLogic Administration Console.
- Click the Lock & Edit button, if it is not done.
- In the Domain Structure pane, navigate to Environment, Servers.
- Click the server you want to configure.
- In the right pane, click Server Start.
- In the Arguments field, include the following space-separated JVM options:
- -Dcom.sun.jndi.ldap.connect.pool.maxsize=64
- -Dcom.sun.jndi.ldap.connect.pool.prefsize=32
- -Dcom.sun.jndi.ldap.connect.pool.initsize=8
- -Dcom.sun.jndi.ldap.connect.pool.timeout=240000
- -Dcom.sun.jndi.ldap.connect.pool.protocol=plain ssl
- -Dcom.sun.jndi.ldap.connect.pool.authentication=simple
- Click Save and then Activate Changes.
- Restart WebLogic Server.
Copyright © 2014 CA Technologies.
All rights reserved.
 
|
|