Hello.
I am running trusted reconciliation against DB source with OIM 11GR2 PS3. I want to generate a password for every new user, based on algorithm required by customer.
I have created PostProcess event handler on CREATE and MODIFY with the following code:
UserManager usrMgr = Platform.getService(UserManager.class);
String newPassword = generatePassword(params); // generates a complex password that is good enough for OIM default password policy
usrMgr.changePassword(UserLogin, newPassword.toCharArray(), true, false);
Plugin returns no errors, however, in the end OIM creates a new user with some random password (ex. blablaqwwdfe11234) that is not equal to newPassword specified by me.
I want users to be created with the password I specify, not some random passwords! How do I switch off this random password generation or at least make it so that my plugin is triggered AFTER the random password has been set, so I can rewrite the password to necessary value?