Hi ,
I am trying to update the value of LDAP attributes secPwdFailures and secPwdLastFailed by using the UserLookupHelper class from info map through ISAM AAC. I always got this error "HPDAA0258E Modification to attribute secPwdFailures is not permitted.". I am having the same working through EAI Java code on the same environment. Can you help me know what is wrong? The code which I am using is below:
importPackage(Packages.com.tivoli.am.fim.trustserver.sts.utilities);
importPackage(Packages.com.ibm.security.access.scimclient);
importPackage(com.ibm.security.access.httpclient);
importClass(Packages.com.ibm.security.access.user.UserLookupHelper);
importClass(Packages.com.ibm.security.access.user.User);
var username= context.get(Scope.REQUEST, "urn:ibm:security:asf:request:parameter", "username");
function secPwdFailures(cibUser){
var hlpr =new UserLookupHelper();
hlpr.init(true);
var user = hlpr.getUser(cibUser);
var output=user.replaceAttribute("secPwdFailures","2");
var error=user.getErrMessage()
IDMappingExtUtils.traceString("Error Message is
"+error);
macros.put("@ERROR_MESSAGE@",error);
return output;
}
secPwdFailures(username);
success.setValue(false);
------------------------------
Hossam Shebl
------------------------------