This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!