hi. i try porting an application from jboss 3.2.1 to 4.0.0 DR4. it works so far - only 
the jaas module fails with a crazy failure. 

when i do login, the principal and role are permuted. 

that means in the userPrincipal Parameter in the request object is in jboss 4 the role 
name, not the principal name after the authentication.

where can i find more information about the jaas module from jboss 4.0.0? what has 
changed?

here is my login-config part, which is working in jboss 3.2.1:

<application-policy name = "xavoportal">
  |        <authentication>
  |           <login-module code = 
"de.xavo.jboss.security.auth.spi.XavoDatabaseServerLoginModule" flag = "required">
  |              <module-option name = 
"dsJndiName">java:XavoportalDataSource</module-option>
  |              <module-option name = "principalsQuery">select PASSWORD from LOGIN 
where upper(LOGIN_NAME)=upper(?)</module-option>
  |              <module-option name = "rolesQuery">select a.Role, a.ROLEGROUP 
from(select USER_GROUP.GROUP_ROLE Role, 'Roles' RoleGroup, LOGIN_NAME from USER_GROUP, 
LOGIN,LOGIN_USER_GROUP where LOGIN.login_id = LOGIN_USER_GROUP.login_id and 
user_group.user_group_id = LOGIN_USER_GROUP.user_group_id union select 
USER_GROUP.GROUP_ROLE Role, 'CallerPrincipal' RoleGroup , LOGIN_NAME from USER_GROUP, 
LOGIN,LOGIN_USER_GROUP where LOGIN.login_id = LOGIN_USER_GROUP.login_id and 
user_group.user_group_id = LOGIN_USER_GROUP.user_group_id ) a where 
upper(LOGIN_NAME)=upper(?)</module-option>
  |           </login-module>
  |        </authentication>
  |     </application-policy>
  | 

any ideas?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837428#3837428

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837428


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to