Skip to Content
0
Former Member
Mar 09, 2007 at 06:07 AM

Change portal password from web dynpro

21 Views

Hi Everybody,

I have a scenario of chaging the portal user password from web dynpro application.

I tried using :

IUserAccount IUA = UMFactory.getUserAccountFactory().getMutableUserAccount("USER.PRIVATE_DATASOURCE.un:enteg2");

IUA.setPassword("password123");

Where "USER.PRIVATE_DATASOURCE.un:user" is the unique-id of the user.

But I am getting an error as

<b>EXCEPTION : com.sap.security.api.NoSuchUserAccountException: The given id "USER.PRIVATE_DATASOURCE.un:enteg2"is not a unique id of a user account!</b>

This unique-id has been taken from the user profile. Even I tried using the function to get the unique user-id and passing as a parameter to this but still its not working . Same error.

We have used LDAP ADS (Through SSL configuration) to store the user details.

<b>We were able to change the password directly from User Profile area in portal.</b>

Can anyone please guide me is there anyother way to do it.

Thanks.

Nirmal