Thank you for the patch, is is working great now. I had in between tried
other telnet proxies such as tn-gw. That did not work because required
emulation was tn5250 ( not char based).
However I notice the following: (not related to the patch)
If I run delegate as
./delegated -vv -f +=telnet
Contents of file telnet:
delegate starts up without any error, but clients are unable to connect.
But if I give the port number on command line as:
./delegated -vv -f -P9999 +=telnet
It works alright
Whats wrong here?
>From: email@example.com (Yutaka Sato)
>Subject: Re: [DeleGate-En] How to use delegate as an authenticating telnet
>Date: Sat, 7 Aug 2004 11:25:47 +0900 (JST)
>On 07/21/04(23:43) you "Sunil S" <sunilandresmi@hotmail..> wrote
> |I needed to let a few users connect to a telnet server in our private
> |network from Internet. Before the user gets the challenge from the real
> |server, I wanted them to first authenticate to the telnet proxy.
> |If I run (after adding users to -telnet with -Fauth)
> |delegate -P2323 SERVER=telnet://real-server ADMIN=me@mydomain..
> |AUTHORIZER=-telnet:* RELIABLE="-a/*"
> |clients get thrown out with log message "not reliable". I did not find
> |suitable "AUTH=" option to be used in this scenario (for telnet
> |Can you please tell me if it is possible to use delegate to meet my
> |requirement and if so how to go about it?
>AUTHORIZER has not been applied to Telnet-DeleGate which is bound to
>a specific Telnet server as SERVER=telnet://server. It will be applied
>to such Telnet-DeleGate with the enclosed patch.
>The patch will be applied to the next release (delegate8.9.6-pre14)
> D G Yutaka Sato <firstname.lastname@example.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.6-pre13/src/telnet.c Thu Jun 17 08:27:09 2004
>--- src/telnet.c Sat Aug 7 11:20:46 2004
>*** 1568,1573 ****
>--- 1568,1595 ----
> return proxy_telnet(Conn);
>+ if( CTX_auth(Conn,NULL,NULL) ) /* with AUTHORIZER */
>+ FILE *fc = fdopen(FromC,"r");
>+ FILE *tc = fdopen(ToC,"w");
>+ char auser,ahost;
>+ int dport = DFLT_PORT;
>+ auser = ahost = 0;
>+ DFLT_PORT = 0; /* to escape "already authorized" */
>doAUTH0(Conn,fc,tc,"telnet",DST_HOST,dport,auser,ahost,getline,NULL) == EOF
>+ DFLT_PORT = dport;
>+ if( ToC < 0 || ToS < 0 )
> if( ToC < 0 || ToS < 0 )
Get head-hunted by 10,000 recruiters. http://go.msnserver.com/IN/46246.asp
Post your CV on naukri.com today.