Article delegate-en/1899 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: IIS username with slash / character problem for ftp delegated-patch works-now only RTSP RealPlayer problem left-thanks
19 Sep 2002 18:19:56 GMT David Xu <>

Thank you very much for the patch, it works like a champ!
Now the only thing left I have to figure out is to  make RealAudio's RTSP
protocol work through this proxy. I guess I have to install something else
to fix it.

David Xu 

-----Original Message-----
From: []
Sent: Thursday, September 19, 2002 3:41 AM
Subject: Re: [DeleGate-En] IIS username with slash / character problem
for ftp delegated

On 09/19/02(04:37) you David Xu <> wrote
in <_A1895@delegate-en.ML_>
 |Recently I got a FTP proxy problem for IIS username with slash (/).
 |One of our client has MS IIS with ftp server enabled. Their ftp userID is
 |domain ID,thus has this format: xxxx/xxxx.
 |The xxxx before forward slash (/) is their domain, after is username.
 |My Gauntlet proxy works fine with it, but I want to see if delegated works
 |so I will replace it.
 |On my workstation behind proxy, I typed:
 |ftp proxyserver

Since DeleGate scans a username following the syntax when it appears
in FTP URL, like ftp://user@host/path, "/" has been recognized as the
beginning of "/path" part.
The enclosed patch will let FTP-DeleGate recognize "/" appeared before "@"
in USER command as the part of username.  It will also cope with such
username appeared in URL like "ftp://domain%2Fuser@host/path" when a
HTTP proxy passed the username part as is.

  @ @ Yutaka 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

*** ../delegate8.0.2/src/ftp.c	Mon Sep 16 07:40:35 2002
--- ftp.c	Thu Sep 19 16:16:09 2002
*** 2102,2110 ****
--- 2102,2112 ----
  				islocal = FS->fs_islocal;
  		if( strcasecmp(com,"USER") == 0 ){
+ 			url_escapeX(arg,arg,sizeof(arg),"/?",":@");
  			xp = scan_userpassX(arg,&ident);
+ 			nonxalpha_unescape(cuser,cuser,1);
  			if( *xp == '@' ){

Financière Banque Nationale et NBCN n'assument
aucune responsabilité quant à la confidentialité et l'intégrité du 
présent courriel en raison des risques d'interception inhérents à l'Internet. 
Pour cette raison, toute opinion exprimée au terme des présentes 
ne reflète pas nécessairement celle de Financière Banque Nationale
et de NBCN.
Due to the security risks involved in sending information over the
Internet, National Bank Financial  and NBCN can 
not be held responsible for ensuring the confidentiality and integrity 
of the present e-mail. For this reason, the opinions expressed herein 
do not necessarily reflect those of National Bank Financial 
and NBCN.

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