|
|
Re: RE: ftpd: DNS lookup & anonymous lookup
|
|
07/14/2008 2:30 PM
post10489
|
Re: RE: ftpd: DNS lookup & anonymous lookup
On Mon, Jul 14, 2008 at 02:23:12PM -0400, Jared Roundy wrote:
> We don't control the ftp client our users are using.
> For multiple reasons our next generation product needs to backward compatible. Our current system will handle the
case where they don't supply a user name.
Which client exibits this behaviour?
-seanb
|
|
|
|
|
|
|
RE: RE: ftpd: DNS lookup & anonymous lookup
|
|
07/14/2008 5:56 PM
post10509
|
RE: RE: ftpd: DNS lookup & anonymous lookup
I've been looking at the same path as you. You would have thought that
it would have been as simple as changing from a STR1 to ZSTR1 in
ftpcmpd.y (and possibly adding in a little bit of support code around
the USER / PASS entries). This definitely helps since it gets you
through yylex, but there's still something buried in yyparse that's
resulting in a "parse error" now. Don't you love auto-generated code?
I'll keep digging for a bit longer to try and see where it's
going off the rails.
Robert.
-----Original Message-----
From: Jared Roundy [mailto:jroundy@zebra.com]
Sent: Monday, July 14, 2008 2:23 PM
To: technology-networking
Subject: Re: RE: ftpd: DNS lookup & anonymous lookup
We don't control the ftp client our users are using.
For multiple reasons our next generation product needs to backward
compatible. Our current system will handle the case where they don't
supply a user name.
_______________________________________________
Technology
http://community.qnx.com/sf/go/post10488
|
|
|
|
|
|
|
RE: RE: ftpd: DNS lookup & anonymous lookup
|
|
07/14/2008 6:57 PM
post10510
|
RE: RE: ftpd: DNS lookup & anonymous lookup
OK... We have a solution...
In ftpcmd.y, line 1866
case CMD:
hasyyerrored = 0;
+ if (strncasecmp(cmdp,"USER \r\n",7) == 0) {
+ strcpy(cmdp, "USER anonymous\r\n");
+ }
if ((cp = strchr(cmdp, '\r'))) {
Add in the three lines as above and an empty user name maps to
"anonymous". Turns out that ftpd already has the hooks to deal with an
empty password, so that's all it takes. I don't know if this is in
compliance with the RFC, so we won't be pulling it into our GA code
base, but it's a pretty simple change.
Robert.
-----Original Message-----
From: Jared Roundy [mailto:jroundy@zebra.com]
Sent: Monday, July 14, 2008 2:23 PM
To: technology-networking
Subject: Re: RE: ftpd: DNS lookup & anonymous lookup
We don't control the ftp client our users are using.
For multiple reasons our next generation product needs to backward
compatible. Our current system will handle the case where they don't
supply a user name.
_______________________________________________
Technology
http://community.qnx.com/sf/go/post10488
|
|
|
|
|