cancel
Showing results for 
Search instead for 
Did you mean: 

Portal: Login Page Change Password

Former Member
0 Kudos

Hi Experts,

We need to create a 'Custom Change Password' page. This page would be directly accesible, like the portal logon page. Page would

allow user to enter userID, old & new passwords. I did try invoking the HTML form using the below code, however it doesnt work!!

..

.

.

.

<form name = '' method= action=>

<input class="urEdfTxtDsbl" name="j_user" id="logonuidfield" type="text" value="testuser" readonly>

<input class="urEdfTxtEnbl" id="logonoldpassfield" name="oldPassword" value="hut123">

<input class="urEdfTxtEnbl" id="logonnewpassfield" name="j_password" value="klmklm">

<input class="urEdfTxtEnbl" id="logonretypepassfield" name="confirmNewPassword" value="klmklm">

<input name="j_authscheme" type="hidden" value="default">

<input style="height:20;" class="urBtnStd" type="submit" name="performChangePassword" value="Change">

.

.

.

On click on change button, USER testuser is able to makes a login BUT the password doesnt get changed

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Iam sending you the link to a very good blog i think if you will follow this blog then there should be no problem atall

This contains the whole code for changing login page.

If you find this helpful please provide points.

Regards

Pooja

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

You could make use of this blog of mine:

Former Member
0 Kudos

Hi Prem,

Blog is excellent, however since i want to expose our CUSTOM CHANGE PASSWORD page like standard portal logon page( i,e once we key in http://Server:<port>/irj/pageName.html this page appears) so it does not fit my requirement

Big picture is that we want to change Portal User Password, when a user click on 3rd party website change password button. In response to this event we will do an HTML post passing j_user ( UserID), Oldpassword, Newpassword & invoke the Change Button click action.

Any help to achieve this would attract maximum points.

Kind Regards

Prashant

Former Member
0 Kudos

Ok. Heres what you can do.

Firstly, the blog like is to follow the code snippets. I know you dont need the exact UI.

Now, You create an abstract portal component which accepts from the REQUEST, the user, old password and new password. When I say REQUEST is because these you will pass as a query string from your 3rd part application.

In the Portalapp.xml file of your portal application enter a property in the component-profile like this:

AuthScheme = anonymous

This will help your application to be called without authentication and the code you write for this application component will chnage the password.

Hope this helps!!

Former Member
0 Kudos

Hi Prem,

i have made the changes and put all the code required to change password in the doInitialization of the jspDynpage component. I dont get any error but password is also not changed.

Portal user i am trying to change is an ABAP user, meaning that we create user in R/3 and by user mapping in UME they automatically become portal user.

IUserAccountFactory accountFactory = UMFactory.getUserAccountFactory();

IUserAccount account = accountFactory.getUserAccountByLogonId("testuser1");

IUserAccount mutableAccount = accountFactory.getMutableUserAccount(account.getUniqueID());

mutableAccount.setPassword("Abc123");

mutableAccount.commit();

is there some important part that i am missing???

0 Kudos

Hi,

If you have a R/3 as UME datasource, then check that you datasource configuation file is set to dataSourceConfiguration_r3_rw.xml, only then you will be able to modify users in the AS ABAP system.

http://help.sap.com/saphelp_nw70/helpdata/EN/43/01644e7af25285e10000000a1553f7/frameset.htm

Regards,

Praveen Gudapati

Former Member
0 Kudos

Hi Praveen,

Datasource configuation file under the UME Configuration DataSource tab read's "dataSourceConfiguration_abap.xml" should i just rename it to dataSourceConfiguration_r3_rw.xml or this file needs to be downloaded??

also i observed that password change just worked once from my JSPDynpage component when i used

mutableAccount.setPassword("oldPwd","newPwd" ); //method with 2 parameters instead of 1

&

also set the portalapp.xml to STOP annonymous logon..

after that it doesnt change any more.

0 Kudos

Hi,

Check if your password fulfills the UME Security Policy on your portal. To know more about this check this:

You can also check if the password you are trying to set fullfills the SecurityPolicy by using these methods:

ISecurityPolicy.isPasswordValid(String pass, String logonId)

ISecurityPolicy.validatePassword(String pass, String uid);

Check this for more:

If all this does not solve the problem, check the logs and post the error.

Regards,

Praveen Gudapati

Former Member
0 Kudos

Hi Prem & Praveen,

Thanks for the direction. we have fixed the issue , points awarded accordingly.UME is using the ABAP user mapping, thus its possible to change the password of the user from portal component using IIUserAccount getMutableaccount only once perday !! Strangely enough we had to wait for one day to check if code works!!

Kind Regards

Prashant