Hi,
I would like to know a way to use encryption on property value of external context configuration. In the following configuration, credentials are passed as plan text. I want to use encrypted form instead of plain text.
<external-context name="java:global/app/ldap" module="org.jboss.as.naming" class="javax.naming.directory.InitialDirContext" cache="true">
<environment>
<property name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>
<property name="java.naming.provider.url" value="ldaps://localhost:636"/>
<property name="java.naming.security.authentication" value="simple"/>
<property name="java.naming.ldap.attributes.binary" value="userPKCS12"/>
<property name="org.app.ldap.rootDN" value="cn=Manager,dc=app,dc=com"/>
<property name="org.app.ldap.rootDNPasswordAlias" value="ldap.root"/>
<property name="java.naming.security.principal" value="cn=Manager,dc=app,dc=com"/>
<property name="java.naming.security.credentials" value="password"/>
</environment>
</external-context>
Please let me know your suggestions.
Thanks!