[JBossCache] - Re: problem when using new Fqn with Integer
by emailmsgbox
thanks for your reply ,
but if I understand you correctlly ,It more a bug the a feature issue .
Since if I choose persistancy in my configuration ,I should not need to change the code
anonymous wrote :
| from the documentation
|
| String n1 = "/300/322649";
| Fqn n2 = new Fqn(new Object{new Integer(300), new Integer(322649)});
|
| In this example, we want to access a node that has information for employee with id=322649 in department with id=300. The string version needs two map lookups on Strings, whereas the Fqn version needs two map lookups on Integers. In a large hashtable, the hashCode() method for String may have collisions, leading to actual string comparisons. Also, clients of the cache may already have identifiers for their objects in Object form, and don't want to transform between Object and Strings, preventing unnecessary copying.
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013309#4013309
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013309
19Â years, 2Â months
[Security & JAAS/JBoss] - Authentication failing
by mahamood_ahmed
Hi,
My requirement is
1. Authentication will be done using by Jboss server using Active Directory.
2. I just want to check for user authentication not roles.
So i did the following things .
1. File Name - login-config.xml I made the following entry.
<application-policy name="HMActiveDirecotry">
<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://indi.dev.dom:389/</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="java.naming.security.principal">sAMAccountName</module-option>
</login-module>
</application-policy>
2. Then in Jboss-web.xml i made the following entry.
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<security-domain>java:/jaas/HMActiveDirecotry</security-domain>
<context-root>/HMActiveDirecotry</context-root>
</jboss-web>
3.In web.xml this is what i did
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
login.jsp
</welcome-file>
</welcome-file-list>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/Welcome.jsp</form-login-page>
<form-error-page>/login_error.jsp</form-error-page>
</form-login-config>
</login-config>
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Content</web-resource-name>
<url-pattern>/restricted/*</url-pattern>
</web-resource-collection>
<!--
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
-->
</security-constraint>
</web-app>
4.My login page is.
<h1>Login Page</h1>
User Name
Password
This all i did when i try to access by providing user credential it is going to Error page only . Please give me your idea what is wrong in this code.
Thanking you all
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013305#4013305
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013305
19Â years, 2Â months