cancel
Showing results for 
Search instead for 
Did you mean: 

how to change user password 

Former Member
0 Kudos

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);

Accepted Solutions (1)

Accepted Solutions (1)

former_member203619
Contributor
0 Kudos

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

DellSC
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks for the reply and advise.

I understand that there is no way as a specification.

Answers (0)