File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes Change Password using JAAS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Change Password using JAAS" Watch "Change Password using JAAS" New topic

Change Password using JAAS

Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 191
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

Awais Bajwa

Joined: Aug 27, 2002
Posts: 11
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

Joined: May 25, 2006
Posts: 1
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

Joined: Dec 03, 2001
Posts: 8
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

Joined: Jan 16, 2001
Posts: 191
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.
I agree. Here's the link:
subject: Change Password using JAAS
It's not a secret anymore!