Author |
|
rnuno Newbie
Joined: 02 March 2012
Online Status: Offline Posts: 4
|
Posted: 02 March 2012 at 4:28am | IP Logged
|
|
|
Hi,
Just tried to activate the poppassd plugin on my installation in data/settings/config.php with the following options:
return array(
'plugins.poppassd-change-password' => true,
'plugins.poppassd-change-password.config.host' => "192.168.10.36",
'plugins.poppassd-change-password.config.port' => 106
);
but i don't see any difference. No new fields are added and the one that refers to the password always says the password get changed but it's not working.
Regarding the poppassd daemon itself it's working i can change users passwords by telnet.
I'm doing something wrong here?
ty
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 02 March 2012 at 4:44am | IP Logged
|
|
|
For this to work, incoming mail server of the account in question should match incoming mail server supplied for default domain in AdminPanel. Can you confirm if this is the case?
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
rnuno Newbie
Joined: 02 March 2012
Online Status: Offline Posts: 4
|
Posted: 02 March 2012 at 5:05am | IP Logged
|
|
|
Yes i think it's was some sort of cache. The fields are displaying now.
Still i cannot pass the verification much like this problem:
http://www.afterlogic.com/forum/forum_posts.asp?TID=4194&PN=1
I'm sure the passwords do match and the old password is correct (cause i logged to the account) but it always fails saying the old password is incorrect.
Bu even weird is that if i clear the old password field it says the new password don't match.
here is a screenshot i just put the field in plain text with developer tools in chrome.
Toughs?
|
Back to Top |
|
|
rnuno Newbie
Joined: 02 March 2012
Online Status: Offline Posts: 4
|
Posted: 02 March 2012 at 7:40am | IP Logged
|
|
|
Enabling the debug option I get this:
[15:25:54.45] [POST(1)] /processing.php
[15:25:54.45] POST > [xml]
[15:25:54.45]
[15:25:54.45] PLUGIN > INIT > CPoppassdChangePasswordPlugin
[15:25:54.46] # start script
[15:25:54.47] POST[xml] = <?xml version="1.0" encoding="utf-8"?><webmail><param name="action" value="update"/><param name="request" value="account"/><account id="2" getmail_at_login="1" is_internal="0" mail_inc_port="143" mail_mode="1" mail_out_port="25" mail_out_auth="1" mail_protocol="1" mails_on_server_days="7"><email><![CDATA[teste@virtual.com]]></email><friendly_nm><![CDATA[teste@virtual.com]]></friendly_nm><mail_inc_host><![CDATA[192.168.10.36]]></mail_inc_host><mail_inc_login><![CDATA[teste@virtual.com]]></mail_inc_login><mail_inc_pass><![CDATA[dora]]></mail_inc_pass><mail_out_host><![CDATA[192.168.10.36]]></mail_out_host><cur_pass><![CDATA[teste123]]></cur_pass></account></webmail>
[15:25:54.48] CAppServer->DoUpdateAccount
[15:25:54.48] DB : connected to webmailuser@po.testdomain.com
[15:25:54.48] DB[1] > SELECT `id_acct`, `id_user`, `id_domain`, `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 mw_awm_accounts WHERE `id_acct` = 2
[15:25:54.50] DB[2] > 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`, `enable_fnbl_sync`, `custom_fields` FROM mw_awm_settings WHERE `id_user` = 2
[15:25:54.50] HOOK > CPoppassdChangePasswordPlugin->PluginChangeAccountById
[15:25:54.51] HOOK > CPoppassdChangePasswordPlugin->PluginUpdateAccount
[15:25:54.51] start connect to 192.168.10.36:106
[15:25:54.51] connected
[15:25:54.52] NET < 200 hello, I'm vpoppasswd 0.0.3\r\n
[15:25:54.52] NET > user teste@virtual.com\r\n
[15:25:54.53] NET < 300 please enter your password for teste@virtual.com\r\n
[15:25:54.53] disconnect from 192.168.10.36:106
[15:25:54.53] Exception[1020]: Current password is not correct.
~ /data/plugins/poppassd-change-password/index.php (80)
It seams it does not complete the command, doing the procedure on the command line i get this:
$ telnet 192.168.10.36 106
Trying 192.168.10.36...
Connected to ebro.testdomain.com (192.168.10.36).
Escape character is '^]'.
200 hello, I'm vpoppasswd 0.0.3
user teste@virtual.com
300 please enter your password for teste@virtual.com
pass dora
200 password OK, please enter newpass
newpass teste123
200 password for teste@virtual.com changed successfully
Connection closed by foreign host.
Maybe i only need to change the way the plugin talks to the daemon but from the log im not sure it is sending any password.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 05 March 2012 at 3:17am | IP Logged
|
|
|
We were assuming that the valid response code is 200, but looks like response code 300 is correct as well, so developers have updated poppassd.php file.
Hope the update helps!
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|