crhume / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

need to invoke an external class file upon a successfull pwd change #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want to trigger a change in passwords of a couple of orcl dbs after a change 
in the ldap password.
I have written a java class for the same.
How should I go about integrating that java class into PWM infrastructure?

Original issue reported on code.google.com by bh.ami...@gmail.com on 27 Jul 2011 at 7:21

GoogleCodeExporter commented 9 years ago
I am also looking for something similar to this too.  I would like to preform a 
HTTP REST api call after a successful forgot password identification process. 

Original comment by hydr...@gmail.com on 27 Jul 2011 at 7:26

GoogleCodeExporter commented 9 years ago
See 'password.pwm.ExternalChangeMethod' class.  And setting ConfigManager -> 
Misc -> External Change Method.

Please comment here if you need something beyond this interface.

Original comment by jrivard on 27 Jul 2011 at 7:42

GoogleCodeExporter commented 9 years ago
If I put in my class file into the appropriate folder under classes, do I need 
to restart Tomcat? It does not seem to be picking up the changes..

Original comment by bh.ami...@gmail.com on 28 Jul 2011 at 3:57

GoogleCodeExporter commented 9 years ago
Yes, a tomcat restart is required.

Original comment by jrivard on 28 Jul 2011 at 4:47

GoogleCodeExporter commented 9 years ago
how do I get the username of the current user from the pwmSession variable in 
ExternalChangeMethod after successfull pwd change?
When I do a pwmSession.getUserID(), I get a null.
When I do a pwmSession.getUserInfoBean().getUserDN(), I get a long string with 
whole lot info.
Need exactly the user id.
thanks for all the help so far

Original comment by bh.ami...@gmail.com on 28 Jul 2011 at 6:44

GoogleCodeExporter commented 9 years ago
I am just starting down this road and was wondering if either of the previous 
posters were able to successfully use the External Change Method interface. If 
so, would you be willing to share your code?

Thanks

Original comment by landr...@gmail.com on 8 Sep 2011 at 4:25