fbordina / pwm

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

Error in Helpdesk module when resetting password on account without mail value #679

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Setup LDAP user account without an email address
2. Remove smtp mail server from config
3. Login to PWM and click on Helpdesk button
4. Find user from step 1
5. Change password

What is the expected output? What do you see instead?

Expected: Password changed
What I see instead: 5015 ERROR_UNKNOWN (unable to send new password email for 
{user} no email address available in ldap)

The password is still changed though, but the above message appears immediately 
after the password changed success message.

What version of PWM are you using?
1.7.1

What ldap directory and version are you using?
eDirectory 8.8 SP8

Seems to me like a part of the helpdesk module is throwing an error if an 
account doesn't have an email address, even if the SMTP gateway address is 
blank (which should disable all attempts to send emails).

Original issue reported on code.google.com by bret...@gmail.com on 16 Apr 2015 at 4:16