I try to change password of exist user .
but it is occurred exception. ( Your password must be at least 8 characters long. )
I want to ignore the password Rule using my JSP Service.
Can any one help me on this?
My code (Change password):
boObjects = boStore.query("SELECT SI_ID From CI_SYSTEMOBJECTS Where SI_PROGID='CrystalEnterprise.User' and SI_NAME = '" + userId + "'");
boUser = (IUser)boObjects.get(0);
boUser.setNewPassword(userPasswd );
boStore.commit(boObjects); //-> Exception occurred.
Additional Information:
Version : XI4.0
Environment : Windows2008 Enterprise R2
Tomcat 6 (included in BusinessObjects CD)
I can create new user with short password using my JSP Service (Create new user).
Why does this happen only when the Password change?
code (Create new user) :
boPluginMgr = boStore.getPluginMgr();
boUserPlugin = boPluginMgr.getPluginInfo("CrystalEnterprise.User");
boObjects = boStore.newInfoObjectCollection();
boNewUser = boObjects.add(boUserPlugin);
boUser = (IUser)boNewUser;
boUser.setNewPassword(userPasswd );
boStore.commit(boObjects);