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> | Unforunately I have to state the password in this mbean declaration as clear text. Does anybody know a method to use an encrypted password for an ExternalContext? I'm thinking about the same method as offered for databases. It would be a good thing to declare a security domain in the login-conf.xml using the SecureIdentityLoginModule and referencing this domain in the declaration of the ExternalContext. Thanks Peter View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953200#3953200 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953200 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user