1 Reply Latest reply on Dec 27, 2010 12:22 PM by peterj

    How configure LDAP in JBoss 5.0.1 as

    dew

      Hello,

      I am new in JBoss I need help with configuration LDAP in Jboss.

       

      I found I can do this via jboss-service.xml file:

       

      <!-- Bind a remote LDAP server -->
      <mbean code="org.jboss.naming.ExternalContext"
             name="jboss.jndi:service=ExternalContext,jndiName=external/ldap/jboss">
          <attribute name="JndiName">external/ldap/jboss</attribute>
          <attribute name="Properties">
              java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
              java.naming.provider.url=ldap://ldaphost.jboss.org:389/o=jboss.org
              java.naming.security.principal=cn=Directory Manager
              java.naming.security.authentication=simple
              java.naming.security.credentials=secret
          </attribute>
          <attribute name="InitialContext"> javax.naming.ldap.InitialLdapContext </attribute>
          <attribute name="RemoteAccess">true</attribute>
      </mbean>
      

       

      Can I do it better way? How could I use it? Test it?

       

      thx