Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: gsmsupp on December 19, 2009, 09:19:22 PM

Title: Password plugin - vpopmaild and qmail
Post by: gsmsupp on December 19, 2009, 09:19:22 PM
Hello
I am using the newest version of Roundcube 0.3.1 and Password plugin.
All seems to be fine, but it is not possible to change password.
Error is caused by $result = password_save($curpass, $passwd); and it returns case PASSWORD_ERROR: (code error 2)
What does it mean ?
It is NOT one of the following errors:
case PASSWORD_CONNECT_ERROR
case PASSWORD_CRYPT_ERROR
'message' => "Password plugin: Unable to open driver file $driver"

Furthermore there is communication with port:
tcpserver: status: 1/40
                      tcpserver: pid 23065 from 127.0.0.1
                                                         tcpserver: ok 23065 localhost:::ffff:127.0.0.1:89 :::ffff:127.0.0.1::49675
                               tcpserver: end 23065 status 65280
                                                                tcpserver: status: 0/40

Please help how to solve it.
Title: Password plugin - vpopmaild and qmail
Post by: osos on December 21, 2009, 03:43:37 PM
Could you please attach your config.inc (the one for password plugin)?

Have you tried to manually log into your vpopmaild daemon?
Quote$ telnet localhost 89
slogin [email protected] password

Look in /tags/roundcubemail/v0.3.1/plugins/password/drivers/vpopmaild.php ? Roundcube Webmail (http://trac.roundcube.net/browser/tags/roundcubemail/v0.3.1/plugins/password/drivers/vpopmaild.php) line 29, 37 and 45 should give you an idea of the commands possible failing.
Title: Password plugin - vpopmaild and qmail
Post by: gsmsupp on December 21, 2009, 08:07:52 PM
When I try to upload attachment it shows
config.inc.php:
Invalid File
Title: Password plugin - vpopmaild and qmail
Post by: osos on December 22, 2009, 01:22:45 AM
just rename til confic.inc.php.txt (<-- .txt extension does the trick)
Title: Password plugin - vpopmaild and qmail
Post by: gsmsupp on December 22, 2009, 01:42:55 AM
Ok thx for the info. Here it is.
Title: Password plugin - vpopmaild and qmail
Post by: osos on December 22, 2009, 04:49:25 AM
Your config seems fine.

Did you try to connect manually to vpopmaild, using telnet and issuing the commands ?
Title: Password plugin - vpopmaild and qmail
Post by: gsmsupp on December 23, 2009, 08:53:16 AM
Hello
Yes, I tried and it shows the following:

$ telnet localhost 89
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK
login [email protected] <*password*>
+OK+
vpopmail_dir /home/vpopmail
domain_dir /home/vpopmail/domains/cleanus.pl
uid 508
gid 503
name kontakt
comment kontakt
quota NOQUOTA
user_dir /home/vpopmail/domains/cleanus.pl/kontakt
encrypted_password $<*encrypted_password*>
clear_text_password <*password*>
no_password_change 0
no_pop 0
no_webmail 0
no_imap 0
bounce_mail 0
no_relay 0
no_dialup 0
user_flag_0 0
user_flag_1 0
user_flag_2 0
user_flag_3 0
no_smtp 0
domain_admin_privileges 0
override_domain_limits 0
no_spamassassin 0
delete_spam 0
system_admin_privileges 0
Title: Password plugin - vpopmaild and qmail
Post by: osos on December 31, 2009, 04:02:18 AM
Seems fine.

Try out all the commands in the driver

Something like:

$ telnet localhost 89

+OK
slogin [email protected]
+OK
mod_user [email protected]
+OK
clear_text_password
.
+OK
quit