Author |
|
tony Newbie


Joined: 05 October 2012 Location: Taiwan
Online Status: Offline Posts: 2
|
Posted: 05 October 2012 at 3:02am | IP Logged
|
|
|
I am using the WebMail Pro when I try to change the password that error occur: "Current password is not correct"
Follow is the debug log :
[08:52:03.11] [POST(1)] /webmail/processing.php
[08:52:03.11] POST > [xml]
[08:52:03.11]
[08:52:03.11] POST[xml] = <?xml version="1.0" encoding="utf-8"?><webmail><param name="token" value="168e9095d7c387f47a5b3207738ce7c7"/><param name="action" value="update"/><param name="request" value="account"/><account id="9" getmail_at_login="1" is_internal="0" mail_inc_port="143" mail_mode="3" mail_out_port="25" mail_out_auth="1" mail_protocol="1" mails_on_server_days="7"><email><![CDATA[tony@mail.chinapost.com.tw]]></email><friendly_nm><![CDATA[Tony Lee]]></friendly_nm><mail_inc_host><![CDATA[124.9.0.194]]></mail_inc_host><mail_inc_login><![CDATA[tony@mail.chinapost.com.tw]]></mail_inc_login><mail_inc_pass><![CDATA[5969971]]></mail_inc_pass><mail_out_host><![CDATA[124.9.0.194]]></mail_out_host><cur_pass><![CDATA[f**k1866]]></cur_pass></account></webmail>
[08:52:03.13] CAppServer->DoUpdateAccount
[08:52:03.15] DB : connected to root@localhost
[08:52:03.15] DB[1] > SELECT `id_acct`, `id_user`, `id_domain`, `id_realm`, `deleted`, `def_acct`, `mailing_list`, `quota`, `email`, `friendly_nm`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_login`, `mail_inc_pass`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_login`, `mail_out_pass`, `mail_out_auth`, `mail_out_ssl`, `def_order`, `getmail_at_login`, `mail_mode`, `mails_on_server_days`, `signature`, `signature_type`, `signature_opt`, `delimiter`, `mailbox_size`, `namespace`, `custom_fields` FROM awm_accounts WHERE `id_acct` = 9
[08:52:03.16] DB[2] > SELECT `id_domain`, `id_realm`, `disabled`, `name`, `url`, `override_settings`, `is_internal`, `site_name`, `lang`, `def_user_timezone`, `def_user_timeformat`, `def_user_dateformat`, `allow_registration`, `allow_pass_reset`, `allow_webmail`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_auth`, `mail_out_login`, `mail_out_pass`, `mail_out_ssl`, `mail_out_method`, `check_interval`, `skin`, `msgs_per_page`, `allow_change_interface_settings`, `allow_change_account_settings`, `allow_users_add_acounts`, `allow_new_users_register`, `layout`, `xlist`, `allow_contacts`, `contacts_per_page`, `global_addr_book`, `allow_calendar`, `cal_show_weekends`, `cal_workday_starts`, `cal_workday_ends`, `cal_show_workday`, `cal_week_starts_on`, `cal_default_tab` FROM awm_domains WHERE `id_domain` = 5
[08:52:03.17] DB[3] > SELECT `id_user`, `msgs_per_page`, `contacts_per_page`, `auto_checkmail_interval`, `last_login`, `logins_count`, `def_skin`, `def_lang`, `def_editor`, `save_mail`, `layout`, `incoming_charset`, `def_timezone`, `def_time_fmt`, `def_date_fmt`, `question_1`, `question_2`, `answer_1`, `answer_2`, `capa`, `custom_fields` FROM awm_settings WHERE `id_user` = 9
[08:52:03.17] HOOK > CPoppassdChangePasswordPlugin->PluginChangeAccountById
[08:52:03.19] HOOK > CPoppassdChangePasswordPlugin->PluginUpdateAccount
[08:52:03.19] start connect to 124.9.0.194:106
[08:52:03.19] connected
[08:52:03.20] NET < 220 Password Server Ready\r\n
[08:52:03.20] NET > user tony@mail.chinapost.com.tw\r\n
[08:52:03.20] NET < 501 Success.\r\n
[08:52:03.21] disconnect from 124.9.0.194:106
[08:52:03.21] Exception[1020]: Current password is not correct.
~ /data/plugins/poppassd-change-password/index.php (87)
----------------------------------------------------------------------
#0 D:\wwwroot\webmail\libraries\afterlogic\common\plugins\change-password.php(38): CPoppassdChangePasswordPlugin->ChangePasswordProcess(Object(CAccount))
#1 [internal function]: AApiChangePasswordPlugin->PluginUpdateAccount(Object(CAccount), false)
#2 D:\wwwroot\webmail\libraries\afterlogic\common\plugin.php(141): call_user_func_array(Array, Array)
#3 D:\wwwroot\webmail\libraries\afterlogic\common\managers\users\manager.php(355): CApiPluginManager->RunHook('api-update-acco...', Array)
#4 D:\wwwroot\webmail\application\server.php(2763): CApiUsersManager->UpdateAccount(Object(CAccount))
#5 [internal function]: CAppServer->DoUpdateAccount()
#6 D:\wwwroot\webmail\application\server.php(4074): call_user_func(Array)
#7 D:\wwwroot\webmail\processing.php(50): CAppServer->UseMethod('update', 'account')
#8 {main}
[08:52:03.22] XML Result >
<?xml version="1.0" encoding="utf-8"?><webmail><error><![CDATA[Current password is not correct]]></error></webmail>
[08:52:03.22] DB : disconnect from root@localhost
Please help, thanks.
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 05 October 2012 at 4:15am | IP Logged
|
|
|
Code 501 returned by POPPASSD means an error has occured, successful operation is indicated by 2xx or 3xx code. If your coniguration defines 501 as "successful" result code, it can be added to the list of acceptable ones by modifying the plugin.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
tony Newbie


Joined: 05 October 2012 Location: Taiwan
Online Status: Offline Posts: 2
|
Posted: 06 October 2012 at 3:21am | IP Logged
|
|
|
After use telnet to test our password server :
it accept the command "user tony"
instead of command "user tony@...."
So if it possible get rid of after the "@" parts after modifying the plugin.
Thanks !
Tony Lee
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 09 October 2012 at 1:44am | IP Logged
|
|
|
To achieve that, modify plugins/poppassd-change-password/index.php file, replace the following code:
Code:
if ($this->oPopPassD->Login($oAccount->IncomingMailLogin, $oAccount->PreviousMailPassword)) |
|
|
with:
Code:
if ($this->oPopPassD->Login(api_Utils::GetAccountNameFromEmail($oAccount->IncomingMailLogin), $oAccount->PreviousMailPassword)) |
|
|
Hope this helps!
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
|
|