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... email@example.com
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.
No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
posted 16 years ago
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. firstname.lastname@example.org
posted 16 years ago
The message above display some xml tag that cannot be shown in the browser. You'll have to use "view source" to show them.