Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Change Password using JAAS

 
Awais Bajwa
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I am implementing JAAS for the user authentication, and I have implemented it using LoginContext.login() implementation .
I am wondering if there is any way to change password of the user using JAAS or should i need to impement it using my own api

Regards
Awais Bajwa
 
shannuv
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAAS is a pulggable framework for authentication and loading authorization elements into the Subject. Changing password is a LDAP protocol call.(If LDAP is the user registry).
 
K Kelley
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same question as Awais. I won't know ahead of time if the user store is LDAP or JDBC. That will be configured in the java security file byany client using my software. It seems we should be able to use JAAS to change the password.
 
Kopparam Babu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAAS Framework does not provide any method for change password.
Neither LoginContext nor LoginModule interfaces provide this method.

But you can still use some patterns to include this operation in your implementation login module and achieve this functionality.
 
Awais Bajwa
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnaks guys for your posts.. aforementioned issue of JAAS is still not resolvd... instead of JAAS ..i used Form based authentication...and it is okey for my current requirements.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic