Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

isUserInRole always returns false

 
Krishnappan Subramanian
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have my web.xml setup ... the below code is what i am using for rendering .... but it always returns false .... any idea? please help asap....thanks

HttpServletRequest httpServletRequest =(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
validUser=httpServletRequest.isUserInRole("ADMIN USER");
return validUser;
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the user ever asked for username and password? If so, when and how?
 
Krishnappan Subramanian
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the user is authenticated via LDAP security ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic