+ Reply to Thread
Page 4 of 5 FirstFirst ... 2 3 4 5 LastLast
Results 31 to 40 of 48

Thread: Password plugins

  1. #31
    tmsam is offline Roundcube Newcomer
    Join Date
    Apr 2010
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default windows + Hmail + roundcube... cannot change pass

    Hi every body, I have install :
    1. windows xp
    2. wampserver 2.0
    3. Hmail 5.3.2
    4. Roucube mail 0.3.1

    Now can send/Reicv with webmail, pop.. but cannot change password. I have try password

    plugin but now success. I think infomation data of user in hmail\database

    folder\hmailserver.sdf not in mysql (mysql.initial.sql) . Pls help me.

  2. #32
    LMSSML is offline Registered User
    Join Date
    Dec 2009
    Posts
    49
    Downloads
    0
    Uploads
    0

    Default plugin with erro

    Hi there,

    I'm using postfix*postfixadmin+roundcube(4) but I have got one problem I've tried what you have been posted for my case that I think its a general case as indented here.

    But got one problem made log on level 4 of roundcube.

    When I try to change the password I saw this .

    "Parse error: syntax error, unexpected '*' in /var/www/rc3/plugins/password/drivers/sql.php on line 51"

    This appears after pressing button to save password it's almost imediatley.


    Any help would be appreciated.

  3. #33
    LMSSML is offline Registered User
    Join Date
    Dec 2009
    Posts
    49
    Downloads
    0
    Uploads
    0

    Default

    No chance of help ?

  4. #34
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    Did you configure the following section properly?

    PHP Code:
    // SQL Driver options
    // ------------------
    // PEAR database DSN for performing the query. By default
    // Roundcube DB settings are used.
    $rcmail_config['password_db_dsn'] = '';

    // The SQL query used to change the password.
    // The query can contain the following macros that will be expanded as follows:
    //      %p is replaced with the plaintext new password
    //      %c is replaced with the crypt version of the new password, MD5 if available
    //         otherwise DES.
    //      %D is replaced with the dovecotpw-crypted version of the new password
    //      %o is replaced with the password before the change
    //      %n is replaced with the hashed version of the new password
    //      %q is replaced with the hashed password before the change
    //      %h is replaced with the imap host (from the session info)
    //      %u is replaced with the username (from the session info)
    //      %l is replaced with the local part of the username
    //         (in case the username is an email address)
    //      %d is replaced with the domain part of the username
    //         (in case the username is an email address)
    // Escaping of macros is handled by this module.
    // Default: "SELECT update_passwd(%c, %u)"
    $rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)'
    The query should be something like:

    UPDATE mailbox SET password=%c WHERE username=%u
    Regards,
    Rosali

    __________________
    MyRoundcube Project http://myroundcube.googlecode.com
    MyRoundcube Online Demo - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

  5. #35
    LMSSML is offline Registered User
    Join Date
    Dec 2009
    Posts
    49
    Downloads
    0
    Uploads
    0

    Smile

    Hi there,


    I use like this:

    $rcmail_config['password_query'] = "UPDATE mailbox SELECT password = %c WHERE username = %u";

    And I got the following error:

    Parse error: syntax error, unexpected '*' in /var/www/rc3/plugins/password/drivers/sql.php on line 51

  6. #36
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    Try without spaces and SELECT is wrong in this context.

    $rcmail_config['password_query'] = "UPDATE mailbox SET password=%c WHERE username=%u";
    Last edited by rosali; 05-30-2010 at 08:45 AM.
    Regards,
    Rosali

    __________________
    MyRoundcube Project http://myroundcube.googlecode.com
    MyRoundcube Online Demo - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

  7. #37
    LMSSML is offline Registered User
    Join Date
    Dec 2009
    Posts
    49
    Downloads
    0
    Uploads
    0

    Smile

    Hi,
    Thanks
    for the awnser


    But it happends the same :

    Parse error: syntax error, unexpected '*' in /var/www/rc3/plugins/password/drivers/sql.php on line 51


    in sql.php line 51

    I found this :

    * $sql = str_replace('%c', $db->quote(crypt($passwd, CRYPT_MD5 ? '$1$'.$salt.'$' : $salt)), $sql);

    I removed the asterisk and I've got this:

    DB Error in /var/www/rc3/program/include/rcube_mdb2.php (627): MDB2 Error: syntax error Query: _doQuery: [Error message: Could not execute statement] [Last executed query: UPDATE mailbox SET password='$1$50SZH$ec36cegLTG2MSqm7jZ3X11' WHERE username=''teste@example.com''] [Native code: 1064] [Native message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'teste@example.com,''' at line 1]


    It worked some problems on '%u' removed and it worked


    Thanks a lot.
    Last edited by LMSSML; 05-28-2010 at 07:36 PM.

  8. #38
    rosali's Avatar
    rosali is offline Super Moderator
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    2,394
    Downloads
    36
    Uploads
    0

    Default

    @tmsam ... meanwhile there is a driver for hmailserver. Check out recent svn trunk version.
    Regards,
    Rosali

    __________________
    MyRoundcube Project http://myroundcube.googlecode.com
    MyRoundcube Online Demo - Free Email Address http://mail4us.net
    MyRoundcube Plugins Generic Installation Guide http://mail4us.net/myroundcube/index.php
    Mailing List http://mail4us.net/?_action=plugin.nabble

  9. #39
    LMSSML is offline Registered User
    Join Date
    Dec 2009
    Posts
    49
    Downloads
    0
    Uploads
    0

    Smile Portuguese language

    HI there

    Everything works fine with rc4 and it's marvelous when I try to change languages to portuguese I get a blank screen when trying to execute the plugin from the interface.

    Is it any bug or something that I make wrong ?

    In english works
    In portuguese (blank screen)

    Thanks in advanced.

  10. #40
    LMSSML is offline Registered User
    Join Date
    Dec 2009
    Posts
    49
    Downloads
    0
    Uploads
    0

    Default

    Anyone with same problem ?

+ Reply to Thread
Page 4 of 5 FirstFirst ... 2 3 4 5 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts