newpasswd = profile.getAutoGeneratedPasswd();
}
if (getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()) {
// Check if user fulfills it's profile.
try {
profile.doesPasswordFulfillEndEntityProfile(password, true);
} catch (UserDoesntFullfillEndEntityProfile ufe) {
final String msg = intres.getLocalizedMessage("ra.errorfullfillprofile", Integer.valueOf(endEntityProfileId), dn, ufe.getMessage());
logSession.log(admin, caid, LogConstants.MODULE_RA, new Date(), username, null, LogConstants.EVENT_INFO_CHANGEDENDENTITY, msg);
throw ufe;
}