09-18-2006 12:28 PM
Hello experts,
We are using LDAP for user authintication. All of our users are set-up in LDAP. If the user failed to login his ID get locked in Portal UME.
We are working on developing a customized application to be given to our help desk agents to unlock users that are locked in Portal (UME). We are using the bellow code. The code run successfuly but the user is still locked in Portal. Is there anything we are missing that we need to add to our code? Please help.
IUserAccountFactory userAccountFactory =
UMFactory.getUserAccountFactory();
IUserAccount userAccount = null;
IUser user = null;
try {
user =UMFactory.getUserFactory().getUserByLogonID(
wdContext.currentContextElement().getUserID());
userAccount = user.getUserAccounts();
IUserAccount mUserAccount = null;
mUserAccount =
userAccountFactory.getMutableUserAccount(
userAccount.getUniqueID());
mUserAccount.setLocked(false, IUserAccount.LOCKED_NO);
mUserAccount.save();
mUserAccount.commit();
} catch (UMException ume) {
wdComponentAPI.getMessageManager().reportException
(ume.getMessage(), true);
}
Best regards,
Kais Barakat
09-18-2006 12:34 PM
Wouldn't be easier to give them rights to the locked users iview under user management and make the iview available to them under their role?
09-18-2006 12:34 PM
Wouldn't be easier to give them rights to the locked users iview under user management and make the iview available to them under their role?
09-18-2006 1:38 PM
No. That option was evaluated and it does not satisfy our requirements. The only option we had was to custom develop it.
09-26-2007 5:57 AM