In the event you are authenticating your m-Power applications against an iSeries profiles, you may come across the scenario where your user’s profile is about to expire. The feature described in this document will allow the user to update their iSeries password through a web application.
To implement:
- Place mrcChangePswd.html in the appropriate Data Dictionary folder: /mrcjava/WEB-INF/classes/DATA_DICTIONARY. You can find this file in /mrcjava/mrcclasses/
Note: This file can be edited to better match your application’s general style. - Add the following code to your /mrcjava/WEB-INF/web.xml filet, directly before </web-app>:
<servlet>
<servlet-name>ChangePassword</servlet-name>
<servlet-class>mrc.ChangePassword</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ChangePassword</servlet-name>
<url-pattern>/servlet/mrc.ChangePassword</url-pattern>
</servlet-mapping> - Open the mrcSignon2.xml in /WEB-INF/classes/DATA_DICTIONARY and add the following code directly before </group>:
<checkPasswordExpiration pdesc="checkPasswordExpiration" value="1" /> - Restart Tomcat