iT邦幫忙

0

squid proxy在使用FTP時,都自動使用匿名登入,是否有辦法讓IE跳出輸入帳號密碼的框?

An FTP authentication failure occurred while trying to retrieve the URL: ftp://
Squid sent the following FTP command:
PASS <yourpassword>
and then received this reply
Login incorrect.
Your cache administrator is root.

能不能這樣呢?

weiclin iT邦高手 4 級 ‧ 2016-02-04 00:09:28 檢舉
試試看安裝新版的 squid
msnman iT邦研究生 1 級 ‧ 2016-02-04 08:07:34 檢舉
感謝你的回應,但如果不確定可以使用,那我這樣做只會給其他人增加困擾,而且更新版本跟作業系統版本及相關服務模組都要跟著更新上去,所以,暫時不考慮。
外獅佬 iT邦大師 1 級 ‧ 2016-02-04 09:29:39 檢舉
這是squid已知的bug,不換版本...
那IE就沒救了...讓樓主自己想想吧...
可以考慮換瀏覽器....
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

5
wiseguy
iT邦超人 1 級 ‧ 2016-02-04 08:46:01
最佳解答

問題出在 FTP server。
squid 會自動用匿名去 try,如果 FTP server 允許匿名登入,那就會直接進 FTP 了。所以解法是把 FTP server 的匿名登入取消,這樣 IE 就會跳出詢問帳密的對話框了。

看更多先前的回應...收起先前的回應...
msnman iT邦研究生 1 級 ‧ 2016-02-04 09:36:00 檢舉

在ftp server上已關閉匿名登入了,在不使用ie proxy的情況下,是會跳出輸入帳號密碼輸入視窗。但ie 勾選proxy 後,就出現上面的訊息。這種情況只有在IE才會發生,其他方式登入FTP都不會放生。

外獅佬 iT邦大師 1 級 ‧ 2016-02-04 09:39:19 檢舉

弄個設定,讓squid告訴所有瀏覽器,不要使用proxy或許可行

msnman iT邦研究生 1 級 ‧ 2016-02-04 09:42:36 檢舉

謝謝你的回答,但我提問的目的是希望解決問題或得到問題發生的原理解釋。

外獅佬 iT邦大師 1 級 ‧ 2016-02-04 09:45:50 檢舉

你要的解釋
This is the problem:

  1. browser doing FTP native protocol shows login popup (Umm, think
    about that one).
    2a) browser sending FTP protocol wrapped in HTTP request seem not to
    show popup when asked for _HTTP-auth_ details.
    2b) Squid does have bug preventing it requesting HTTP-auth for FTP
    protocol.
msnman iT邦研究生 1 級 ‧ 2016-02-04 10:11:22 檢舉

了解,不情之請,可以問一下有解決之道嗎?
或是,有什麼方法可以讓FTP自動繞過SQUID。

外獅佬 iT邦大師 1 級 ‧ 2016-02-04 10:33:25 檢舉

沒記錯的話.....應該是...

&lt;pre class="c" name="code">
acl FTP proto FTP
always_direct allow FTP
外獅佬 iT邦大師 1 級 ‧ 2016-02-04 10:33:55 檢舉
msnman iT邦研究生 1 級 ‧ 2016-02-04 11:45:40 檢舉

這個設定沒辦法解決,一樣的狀況。

我要發表回答

立即登入回答