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

[DeleGate-En] Re: nntp auth
11 May 2004 07:52:44 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


On 05/10/04(00:59) you "George Zlatanov" <jozatan@yahoo..> wrote
in <_A2606@delegate-en.ML_>
 |I'm trying to access nntp via http with DeleGate. My syntax is:
 |
 |./delegated -v -P8050 MOUNT="/netnews/*
 |nntp://news.server.tlda/news.group/*"
 |
 |I do have username and password for that news server and when I'm trying to
 |access it via IE I'm getting prompted for username and password. After
 |entering them the system is asking me again and again to enter them and I'm
 |getting auth failure as a result.

There could be something unexpected conversation for the negotiation
with the NNTP server.  Could you show me the dialog between the server
and DeleGate using the following option?

  FSV=-tee-n

I saw a successful dialog in my testing environment like follows:

     1  200 localhost PROXY NNTP server  DeleGate/8.9.4-pre1 READY.
05/11 16:33:53.63 [12681] 1+1/1: #### AUTHINFO: USER user@host
     1  AUTHINFO USER user@host
     2  381 PASS required [DeleGate]
05/11 16:33:53.85 [12681] 1+1/1: ## S-C 381 PASS required [DeleGate] [][]
     2  AUTHINFO PASS pass
     3  281 OK [DeleGate]

The more detailed dialog is enclosed.

 |I know I could enter user/pass as
 |nntp://user:pass@server.., but...
 |
 |my username looks like: myname@server.. (with other words an e-mail
 |address with @ in it)
 |password is single word

You can escape special character like "@" in URL with standard %XX
notation like this:

  nntp://user%40host:pass@news-server/group

 |How could it enter user and pass as nttp://........ on the command line, or
 |from a file? Is it possible? Any way to work around?

Cheers,
Yutaka
--
  D G   Yutaka Sato <y.sato@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


05/11 16:33:34.25 [12681] 1+1: [0] newServer = nntp://me:9119
05/11 16:33:34.25 [12681] 1+1: islocal = 1
05/11 16:33:34.25 [12681] 1+1: NNTPGW: [me:9119]=1=-1 UserPass=[:] GroupAnumSrch=[mail-lists.delegate/12369] KeepAlive
05/11 16:33:34.25 [12681] 1+1: [0.00,-1][AUTH cache-NONE] /home/y.sato/delegate/adm/authorizer/lo/9e05d76eb24b93bfb48e3aaac8940c73-cache
05/11 16:33:34.25 [12681] 1+1: ConnectToServer connected [16] {127.0.0.1:9119 <- 127.0.0.1:57586} [0.000s]
05/11 16:33:34.26 [12683] 1+1: -- Fork(FSV): 12681 -> 12683
     1  200 localhost PROXY NNTP server  DeleGate/8.9.4-pre1 READY.
05/11 16:33:35.39 [12681] 1+1: ## S-C 200 localhost PROXY NNTP server  DeleGate/8.9.4-pre1 READY.^M
05/11 16:33:35.39 [12681] 1+1: getting HELP from lo...
     1  HELP
     2  100 Legal commands
     3  HELP LIST GROUP DATE NEWNEWS
     4  ARTICLE HEAD BODY XOVER XPATH
     5  QUIT
     6  Report problems to <ysato@delegate.org>
     7  --
     8  NNTP-DeleGate/8.9.4-pre1 (May 10, 2004)
     9  AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165
    10  Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
    11  Copyright (c) 2001-2004 National Institute of Advanced Industrial Science and Technology (AIST)
    12  .
05/11 16:33:35.61 [12681] 1+1: reuse LIST [wildmat][age=514] 400 server closed (502 Auth. ERROR.)^M
05/11 16:33:35.61 [12681] 1+1: without LIST ACTIVE [wildmat]: 400
05/11 16:33:35.61 [12681] 1+1: checking pathhost of lo in junk...
     2  GROUP junk
    13  480 Authentication required[DeleGate]
05/11 16:33:35.83 [12681] 1+1: ## S-C 480 Authentication required[DeleGate] [][]
05/11 16:33:35.83 [12681] 1+1: [GROUP][junk] >> 480 Authentication required[DeleGate]^M
05/11 16:33:35.83 [12681] 1+1: checking pathhost of lo in control...
     3  GROUP control
    14  480 Authentication required[DeleGate]
05/11 16:33:36.05 [12681] 1+1: ## S-C 480 Authentication required[DeleGate] [][]
05/11 16:33:36.05 [12681] 1+1: [GROUP][control] >> 480 Authentication required[DeleGate]^M
     4  GROUP mail-lists.delegate
    15  480 Authentication required[DeleGate]
05/11 16:33:36.27 [12681] 1+1: ## S-C 480 Authentication required[DeleGate] [][]
05/11 16:33:36.27 [12681] 1+1: [GROUP][mail-lists.delegate] >> 480 Authentication required[DeleGate]^M
     5  QUIT
    16  205 bye.
05/11 16:33:36.39 [12681] 1+1: ## NNTP_closeServer: 205 bye.^M
05/11 16:33:36.39 [12681] 1+1/1: CFI process [12683] done
05/11 16:33:52.49 [12681] 1+1/1: ClosedOnTimeout(0): time=1084260832/1084260844 ppid=12677/12677 pid=12681/12681
05/11 16:33:52.49 [12681] 1+1/1: IGNORE request: Keep-Alive: 300^M
05/11 16:33:52.49 [12681] 1+1/1: Proxy: host=myhost.localdomain; User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 Netscape/7.1; DIRECT
05/11 16:33:52.49 [12681] 1+1/1: *** /news/mail-lists.delegate/12369 => nntp://me:9119/mail-lists.delegate/12369 ***
05/11 16:33:52.49 [12681] 1+1/1: REQUEST = GET /news/mail-lists.delegate/12369 HTTP/1.1^M
05/11 16:33:52.49 [12681] 1+1/1: *** /news/mail-lists.delegate/12369 => nntp://me:9119/mail-lists.delegate/12369 ***
05/11 16:33:52.49 [12681] 1+1/1: REQUEST +M nntp://me:9119/mail-lists.delegate/12369 HTTP/1.1^M
05/11 16:33:52.49 [12681] 1+1/1: HTTP GateWay > nntp://me:9119/GET /mail-lists.delegate/12369 HTTP/1.1^M
05/11 16:33:52.49 [12681] 1+1/1: PATH> nntp://me:9119!yshome:9998!myhost.localdomain:55403!anonymous@myhost.localdomain;1084260814
05/11 16:33:52.49 [12681] 1+1/1: REQUEST = [nntp://me:9119/] GET /mail-lists.delegate/12369 HTTP/1.1^M
05/11 16:33:52.49 [12681] 1+1/1: Authorization: Dont-Read/Write-Cache ON
05/11 16:33:52.49 [12681] 1+1/1: Cookie: code=%5B12%2FFeb%2F2004%3A15%3A55%3A29%20%2B0900%5D
05/11 16:33:52.49 [12681] 1+1/1: XHost: (0,0,1) me:9119 <= 192.168.1.111:9998
05/11 16:33:52.49 [12681] 1+1/1: [0] (reuse) newServer = nntp://me:9119 (LISTwild=-1)
05/11 16:33:52.49 [12681] 1+1/1: NNTPGW: [me:9119]=1=-1 UserPass=[user@host:******] GroupAnumSrch=[mail-lists.delegate/12369] KeepAlive
05/11 16:33:52.49 [12681] 1+1/1: [0.00,-1][AUTH cache-NONE] /home/y.sato/delegate/adm/authorizer/lo/869023334e8a445fe4cae5e959b8d556-cache
05/11 16:33:52.49 [12681] 1+1/1: ConnectToServer connected [15] {127.0.0.1:9119 <- 127.0.0.1:57587} [0.000s]
05/11 16:33:52.50 [12685] 1+1/1: -- Fork(FSV): 12681 -> 12685
     1  200 localhost PROXY NNTP server  DeleGate/8.9.4-pre1 READY.
05/11 16:33:53.63 [12681] 1+1/1: #### AUTHINFO: USER user@host
     1  AUTHINFO USER user@host
     2  381 PASS required [DeleGate]
05/11 16:33:53.85 [12681] 1+1/1: ## S-C 381 PASS required [DeleGate] [][]
     2  AUTHINFO PASS pass
     3  281 OK [DeleGate]
05/11 16:33:54.07 [12681] 1+1/1: #### AUTHINFO-RESP: 281 OK [DeleGate]^M
     3  GROUP mail-lists.delegate
     4  211 10000 0 0000X mail-lists.delegate
     4  ARTICLE 12369
     5  220 12369 <_A12369@delegate.ML_> ARTICLE
    ...
--

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