• Post Reply Bookmark Topic Watch Topic
  • New Topic

local OS authentication with was 5.1  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I tried to set-up WSAD to use my local OS (windows 2000) to authenticate my users.
I set-up the web.xml to use basic form login, set-up the security constraint and added the users to my windows system...
Then when the server try to authenticate my user, it goes into the windows registry and reply that this user is not granted
any of the required role. message is: Authorization failed, Not granted any of the required roles: AllAuthenticated
What I don't get is how can I give roles to my groups defined within windows ?
In which file shall I put this information ?
and by the way i'm wondering how can I retrieve the Credential within an servlet ?
Thanks for any help or advice...
fag@gfi.ch
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure they are added to the service admins if you are using Windows. Go to control panel -->admin tools -->Local Security Policy-->LocalPolicy-->User Rights Assignment and double click 'Log on as Service' and then click add to add a user.
 
fred agneray
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I finally succeed. The key files were META-INF/application.xml and META-INF/ibm-application-bnd.xmi.
1/ So I set-up the users in windows2000 Local Users and Group And created the group AllAuthenticatedUsers for my users.
2/ I created and added to META-INF/ibm-application-bnd.xmi:

3/ Added to META-INF/application.xml

4/ Then I could use the role-name AllAuthenticated within web.xml like any standard use.
note that the META-INF In refer above is the one located in your main project, not the sub-project.
I have to say that the red-book was not of great help nor the different wizard. I think maybe the AAT might have done the trick, but I couldn't find it in was 5.1
If someone has the same problem I hope this can help.
fag@gfi.ch
 
fred agneray
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The message above display some xml tag that cannot be shown in the browser. You'll have to use "view source" to show them.
 
Yup, yup, yup. Tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!