cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Help with Test Server (ftpserver.pl)

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Wed, 4 Dec 2013 20:54:17 +0000

On Tue, 3 Dec 2013, Daniel Stenberg wrote:

> > As can be seen with lines 7 and 13, the client sends the AUTH command
> > with the appropriate SASL authentication mechanism. The first time
> > requesting NTLM and the second time requesting LOGIN (after
> > downgrading due to a bad NTLM type-2 response from the server). As
> > such the test server needs to send different responses, but
> > unfortunately, I can?t specify the following in a test case as
ftpserver.pl
> > currently stands:
>
> Here's an idea:
>
> Make the "REPLY" logic first check to see if it has a replacement for the
> _full_ command line and if it has, don't replace for just the command.
That
> would allow the test cases to look something like:
>
> REPLY "AUTH NTLM" 334 NTLM Accepted
> REPLY "AUTH LOGIN" 334 VXNlcm5hbWU6
>
>... alternatively, we add a separate keyword for that full command line
> replacement instead of overloading the existing REPLY, like:
>
> FULLCMD "AUTH NTLM" 334 NTLM Accepted
> FULLCMD "AUTH LOGIN" 334 VXNlcm5hbWU6
>
> Good enough?

Cool - I think both of those would work. Thank you.

Kind Regards

Steve
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-04