[Installation, Configuration & DEPLOYMENT] - Re: Tutorial for setup of Authentication in JBoss?
by dickson1888
Thanks Peter.
I install jxplorer and can browse the ldap server; get the my DN as below. And list the ldap auth config as below. I still get 403 error code. Peter, please help to point out what's wrong. Thanks.
DN: uid=dickson,ou=people,o=my.com
********************************************
login-config.xml
--------------------------
<application-policy name = "testLdapExample1">
<login-module code="org.jboss.security.auth.spi.LdapLoginModule"
flag="required">
<module-option name="java.naming.factory.initial">
com.sun.jndi.ldap.LdapCtxFactory
</module-option>
<module-option name="java.naming.provider.url">
ldap://ldap.my.com/
</module-option>
<module-option name="java.naming.security.authentication">
simple
</module-option>
<module-option name="principalDNPrefix">uid=</module-option>
<module-option name="principalDNSuffix">,ou=people,o=my.com</module-option>
<module-option name="rolesCtxDN">,ou=people,o=my.com</module-option>
<module-option name="uidAttributeID">uid</module-option>
<module-option name="matchOnUserDN">true</module-option>
<module-option name="roleAttributeID">userClass</module-option>
<module-option name="roleAttributeIsDN">true</module-option>
<module-option name="searchTimeLimit">5000</module-option>
<module-option name="searchScope">ONELEVEL_SCOPE</module-option>
</login-module>
</application-policy>
*********************************************
web.xml
-----------------
<security-constraint>
<web-resource-collection>
<web-resource-name>HtmlAdaptor</web-resource-name>
An example security config that only allows users with the
role JBossAdmin to access the HTML JMX console web application
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>staff</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>JBoss</realm-name>
</login-config>
<security-role>
<role-name>staff</role-name>
</security-role>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235200#4235200
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235200
16 years, 10 months
[JBoss Cache: Core Edition] - Re: Bind cache with jndi
by mircea.markus
anonymous wrote : @Mircea - you should be able to bind to JNDI. This is useful not only for local mode, but even clustered modes where you want to share 1 cache instance across several webapps/enterprise apps in the same container.
You can't put it in JNDI as the CacheInvocationDelegate is not serializable(see stack trace from original post);
re:putting clustered caches in JNDI, that's a bit more tricky: between JNDI serailization and deserialization the cache might miss replication events and be in a inconsistent state. On the other hand what's the point of putting a replicated cache in JNDI because you can create an handler to it from any JVM you want to. Perhaps serializing+unserializing is more efficient than creating a new handler, but again there's the advantage of not loosing replication events.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235186#4235186
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235186
16 years, 10 months