wood burning stoves 2.0*
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
Author

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

Regards
Awais Bajwa
shannuv
Greenhorn

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
Greenhorn

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
Greenhorn

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Change Password using JAAS
 
Similar Threads
Propagate user credentials to child process
jaas authentification-get Password
Login Use Case and JAAS...
Using JAAS to authenticate tomcat users
Problem with MYSql