Article delegate-en/2570 of [1-4225] on the server localhost:7119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A2568@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: A very weird delegated problem
13 Mar 2004 10:29:23 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project

Hi,

On 03/13/04(10:01) you lupin2000 <lupin2000@..tw> wrote
in <_A2568@delegate-en.ML_>
 |I use a ftp client(smartftp),and ftp server(proftpd).
 |The SSL option is enabled on both server/client sides.
 |I run delegated on a proxy machine,with the following command:
 |
 |./delegated -v -P7010 SERVER=ftp://a.b.c.d:port 
 |RELIABLE="*" CMAP="sslway:FCL:ftp-data" CMAP="sslway -St:FSV:ftp"
 |CMAP="sslway -St:FCL:ftp"  CMAP="sslway:FSV:ftp-data"
 |
 |I can login without any problem.
 |The problem is when the login process is finished,the ftp client
 |tried to LIST the directory,the first will return "SSL error".
 |If I press "refresh" button of my ftp client ,it will work f
 |ine and get a perfect directory listing.

I could reproduce the problem just with a client side SSLway like this:

  delegated -P9999 SERVER=ftp://server \
    CMAP="sslway -St:FCL:ftp" \
    CMAP="sslway:FCL:ftp-data"

 |My question is : Why does the first-time dir listing always fail????

It is because SSLway is not inserted at the first data-connection.
This bug was born at DeleGate/8.8.0 and will be fixed as the
enclosd patch.

Cheers,
Yutaka
--
  D G   Yutaka Sato <pfqcabdyi-mxhgu47la73w.ml@delegate.org> http://delegate.org/y.sato/
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


*** ../dist/delegate8.9.2/src/ftp.c	Tue Feb  3 21:55:37 2004
--- src/ftp.c	Sat Mar 13 19:19:25 2004
***************
*** 365,370 ****
--- 365,371 ----
  
  	FS->fs_Conn = Conn;
  	FS->fs_dataConn = *Conn;
+ 	FS->fs_dataConn.xf_filters = 0;
  	strcpy(FS->fs_dataConn.sv.p_proto,"ftp-data"); /* REAL_PROTO */
  }
  static save_FS(FS)

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V