on 02-26-2014 3:22 AM
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);
When creating a user, it is assumed that it is an administrator creating it, so no password rules are applied. However, when changing the password, there is no such assumption (Even if it is the administrator making the change) and password rules are applied.
Unfortunately there is no way around this. The only way to reset the password to less than 8 characters would be to delete and then re-create the user.
Shawn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
However, you need to be aware that if you delete the user you will lose anything in the user's Inbox and Favorites folder along with group membership and the "ownership" of any objects in the public folders.
So, at a minimum, you'll have to reassign the user to the appropriate user groups after recreating it.
-Dell
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.