Forums de discussion
Secure Database connection
Richard Doyle, modifié il y a 10 années.
Secure Database connection
New Member Publications: 2 Date d'inscription: 23/02/13 Publications récentes
Is there any other place the database connection details could go that would be more secure? I know you put them in portal-ext.properties, but would there be any best practices for security?
Vilmos Papp, modifié il y a 10 années.
RE: Secure Database connection
Liferay Master Publications: 529 Date d'inscription: 21/10/10 Publications récentes
Hi,
You can use jndi as well then you can administer the credentials in the app server/servlet container.
Regards,
Vilmos
You can use jndi as well then you can administer the credentials in the app server/servlet container.
Regards,
Vilmos
Richard Doyle, modifié il y a 10 années.
RE: Secure Database connection
New Member Publications: 2 Date d'inscription: 23/02/13 Publications récentes
This could be what I'm looking for. Is there any documentation on JNDI with Liferay?
Vilmos Papp, modifié il y a 10 années.
RE: Secure Database connection
Liferay Master Publications: 529 Date d'inscription: 21/10/10 Publications récentes
Hi,
In portal-impl.jar/portal.propeties you can find this:
So if you set jdbc.default.jndi.name for the name of the JNDI defined JDBC datasource it should work.
A bit more details can be found here: https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen14-manual-configuration-0
In portal-impl.jar/portal.propeties you can find this:
#
# Set the JNDI name to lookup the JDBC data source. If none is set,
# then the portal will attempt to create the JDBC data source based on the
# properties prefixed with "jdbc.default.".
#
#jdbc.default.jndi.name=jdbc/LiferayPool
So if you set jdbc.default.jndi.name for the name of the JNDI defined JDBC datasource it should work.
A bit more details can be found here: https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen14-manual-configuration-0