bigbosst / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

Admin login, How to modify user passwords #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.admin login --> user information --> input username,click search
2.in the userinformation.jsp page,I added reset password function.
3.input new password.-->reset button.
4.forward to ResetPassword.java, to modify the password by ldapchai
code:
final String userID = Validator.readStringFromRequest(req, "userID", 255);
final String userDN = 
UserStatusHelper.convertUsernameFieldtoDN(userID,pwmSession,context);
...
final ChaiUser theUser = ChaiFactory.createChaiUser(userDN, 
pwmSession.getSessionManager().getChaiProvider());
currentPass = cpb.getNewPassword();
theUser.setPassword(currentPass); ///error here
...

What is the expected output? What do you see instead?
Admin login, can modify user passwords

What version of PWM are you using?
pwm 1.5.3

What ldap directory and version are you using?
sun directory server6.3

Please paste any error log messages below:
page error:
PWM 5026
Unable to establish session password. 

Console:
2011-07-14 09:50:49, WARN , servlet.ResetPasswordServlet, {t,testadmin} error 
setting random password for user cn=testuser04,ou=user1,dc=root,dc=com [LDAP: 
error code 50 - Insufficient 'write' privilege to the 'userPassword' attribute 
of entry 'cn=testuser04,ou=user1,dc=root,dc=com'. [127.0.0.1/localhost]
]
2011-07-14 09:50:49, ERROR, servlet.TopServlet, {t,testadmin} pwm error during 
page generation: 5026 ERROR_BAD_SESSION_PASSWORD (error setting random password 
for user cn=testuser04,ou=user1,dc=root,dc=com [LDAP: error code 50 - 
Insufficient 'write' privilege to the 'userPassword' attribute of entry 
'cn=testuser04,ou=user1,dc=root,dc=com'. [127.0.0.1/localhost]
])

Original issue reported on code.google.com by foo.b...@gmail.com on 14 Jul 2011 at 1:53

GoogleCodeExporter commented 9 years ago
If you want help with this sort of thing, please ask on the pwm-developers list.

And unless you share your code, it's unlikely anyone will be able to help you.

I'm personally unfamiliar with sun directory server, so won't be much help 
there.  

And lastly, the error messages look pretty clear.

Original comment by jrivard on 14 Jul 2011 at 9:07