Hello,
I would like to bind an external ldap server into the jndi-tree.
In the documentation I found the class ExternalContext which
is designed to do this.
I would like to protect the access to the ldap server using
a technical useraccount for connection to the server:
<!-- Bind a remote LDAP server --> <mbean code="org.jboss.naming.ExternalContext" name="jboss.jndi:service=ExternalContext,jndiName=external/ldap"> <attribute name="JndiName">external/ldap</attribute> <attribute name="Properties"> java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory java.naming.provider.url=ldap://localhost:389 java.naming.security.authentication=simple java.naming.security.principal=uid=techuser,dc=users,dc=mydomain,dc=de java.naming.security.credentials=secret </attribute> <attribute name="InitialContext"> javax.naming.ldap.InitialLdapContext </attribute> <attribute name="RemoteAccess">false</attribute> </mbean>