[jboss-user] [JBoss Portal] - Re: isUserInRole(String role) doesn't work

chennaikar do-not-reply at jboss.com
Tue Aug 28 18:37:03 EDT 2007


I know that this question has been answered many times, but I cant seem to make it work so please help me.

I read PLT.20.3

I have update portlet.xml and added my role

  | <security-role-ref>
  |     <role-name>myrole</role-name>
  |     <role-link>myrole</role-link>
  | </security-role-ref>
  | 

I have updated web.xml and added my role

  | <security-role>
  |     <role-name>myrole</role-name>
  | </security-role>
  | 

I have entered the value in the jbp_roles table

Since I am logging in against LDAP I am sure I am getting the role in the profile.

Yet I do not get isUserInRole("myrole") == true

Is there something I am missing?


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

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



More information about the jboss-user mailing list