cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset password for LDAP userID in webdynpro code

Former Member
0 Kudos

Hello,

Could you please help by providing inputs

LDAP has been made into read write mode

Now in webdynpro application I need to reset password of given LDAP user

Kindly help

thank you in advance

B

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

chcek the below link.

Resetting the password is from Logon page so w eneed use logon page par file as described in the below links.

[http://wiki.sdn.sap.com/wiki/display/EP/ModifyingtheLogon+Page]

[http://wiki.sdn.sap.com/wiki/display/EP/LookandFeel]

Regards,

Govindu

Answers (4)

Answers (4)

bhakti2
Active Participant
0 Kudos

.

Former Member
0 Kudos

Hi,

Using the UME API you can change the password.

Try this code.

IUserAccount account = accountFactory.getUserAccountByLogonId("User ID");
IUserAccount mutableAccount =accountFactory.getMutableUserAccount(account.getUniqueID());
mutableAccount.setPassword(wdContext.currentUserDetailsElement().getPassword());

bhakti2
Active Participant
0 Kudos

hi Shyam

I had been struggling wid this code for too much time because account.getUniqueID() was giving hell lot of trouble

finalli i got it like this

IUserFactory userFactory = UMFactory.getUserFactory();

IUser user = userFactory.getUserByLogonID(userid);

IUserAccount[] acct = user.getUserAccounts();

String userId = acct[0].getLogonUid();

IUserAccountFactory accountFactory = UMFactory.getUserAccountFactory();

IUserAccount account = accountFactory.getUserAccountByLogonId(userId);

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

mutableAccount.setPassword(password);

mutableAccount.save();

mutableAccount.commit();

message = "Success";

thanks

B

Former Member
0 Kudos

Hi,

IN EP 7.01 the standard password reset application is WD based. If you configure the UME to LDAP the same application can be used to reset the password.

For new WD application you can use UME API.

Please search for the materials on SDN for above requirements

Regards

Deepak

former_member185086
Active Contributor
0 Kudos

Hi

Follow this.

http://chplanet.ca/documents/SAP/WebDynpro%20Java%20UME%20to%20LDAP%20Migration.pdf

/message/7388333#7388333 [original link is broken]

BR

Satish Kumar