« Return to Thread: ChangePass- Password change was not successful! but yes

Re: ChangePass- Password change was not successful! but yes

by monflo :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
I don't understand, what I need to solve the problem?


De: MrC <lists-squirrelmail@...>
Para: Squirrelmail Plugins Mailing List <squirrelmail-plugins@...>
Enviado: martes, 19 de mayo, 2009 18:02:05
Asunto: Re: [SM-PLUGINS] ChangePass- Password change was not successful! but yes

On 5/19/2009 3:29 PM, Paul Lesniewski wrote:

> On Tue, May 19, 2009 at 3:14 PM, moncho  wrote:
>> Under the POP / IMAP, I make the following
>> # telnet localhost 106
>> Trying 127.0.0.1...
>> Connected to localhost (127.0.0.1).
>> Escape character is '^]'.
>> 200 localhost poppassd v1.6a hello, who are you?
>> user USER
>> 200 your password please.
>> pass PASSWORD
>> 200 your new password please.
>> newpass PASSWORD_NEW

The problem is here:
>> Changing password for user USER.
    ^^^

A lowercasing of the word "Changing" needs to occur in poppassd.c (of
poppassd @ ftp://netwinsite.com/pub/poppassd/poppassd.cpoppassd.c):


/* Prompt strings expected from the "passwd" command. If you want
  * to port this program to yet another flavor of UNIX, you may need to add
  * more prompt strings here.
  *
  * Each prompt is defined as an array of pointers to alternate
  * strings, terminated by an empty string. In the strings, '*'
  * matches any sequence of 0 or more characters. Pattern matching
  * is forced to lower case so enter only lower case letters.
  */

static char *P1[] =
    {
      "password: ",
      "changing password for *\nenter old password: ",

      ^^^

>> passwd: all authentication tokens updated successfully.
>>
>> In my /var/log/messages
>> passwd(pam_unix)[24847]: password changed for USER
>>
>> And in Squirrelmail
>> Password change was not successful!
>>
>> I think the plugins "change_pass" is not receiving the correct password
>> change successful.
>>
>> In this part of the code "functions.php" is waiting for something 200?
>
> Looks like it.  Funny thing with your service is that it does give 200
> responses for everything *except* the final success message.  I'd
> consider that a bug in whatever service you have implemented.

It actually does:

    syslog (LOG_ERR, "password changed for %s", user);
    WriteToClient ("200 Password changed, thank-you.")


>
>> if(!preg_match('/^2\d\d/', $result)) {
>>                                  sq_change_text_domain('change_pass');
>>                                  $error_messages[] = _("Password change was
>> not successful!");<-----
>> This is the error I get
>>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

 « Return to Thread: ChangePass- Password change was not successful! but yes