File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

isUserInRole always returns false

 
Krishnappan Subramanian
Greenhorn
Posts: 2
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the user is authenticated via LDAP security ...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic