0 Replies Latest reply on Jan 13, 2015 2:23 AM by valsaraj viswanathan

    Custom password encryption for LDAP connection

    valsaraj viswanathan Master

      I am using the following to connect to LDAP:

      <subsystem xmlns="urn:jboss:domain:naming:2.0">

                  <bindings>

                      <external-context name="java:global/ldap" module="org.jboss.as.naming" class="javax.naming.ldap.InitialLdapContext" 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.security.principal" value="uid=admin,ou=system" />

                   <property name="java.naming.security.credentials" value="secret" />

                          </environment>

                      </external-context>

                  </bindings>

                  <remote-naming/>

              </subsystem>

       

      Here raw password is directly specified. I would like to know the methods to use custom encrypted model to specify password.