• 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Creating a Principal to be used in JAAS

Posts: 2
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an enterprise application that makes use of JAAS for its authentication. The ultimate goal is to authenticate an external user (using custom md5/timestamp logic, e.g. since we don't know what the password is) and place a subject for the user (programatically using JaaS custom Login Modules) in the enterprise application.

I have done the work for creating and configuring the module. The area where I am stuck is when I try and create a subject for the user. Is there a way I can create a subject for the incoming user when we don't know the password of the user?

To this point, I extended Principal class and tried to instantiate that Principal-extended class in my JAAS module's login() method. The issue I am facing is that Websphere 8.1 will NOT authenticate and throw an invalid credential error even after having put the shared state in the Websphere.

Websphere version: 8.1 SP3
Java 1.6
Windows Active Directory

Any pointers will be greatly appreciated! Thanks a lot.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic