ローカルのイントラネットサイトをミラーリングしようとしていて、以前の質問で 'wget'を使用していました。これは匿名のサイトではうまくいきますが、username \ password(Windows認証が統合されたIIS)が必要なサイトに対しては使用できませんでした。ここでNTLMで保護されたサイトに対してwgetを使用
は私が渡しです:
のwget -c --http-ユーザー= 'ドメイン\ユーザー--http-パスワード= PWD http://local/site -dv
ここにありますデバッグ出力(Iは明らかにダミーの値でいくつかを置き換えます)。
Setting --verbose (verbose) to 1 DEBUG output created by Wget 1.11.4 on Windows-MSVC. --2009-07-14 09:39:04-- http://local/site Host `local' has not issued a general basic challenge. Resolving local... seconds 0.00, x.x.x.x Caching local => x.x.x.x Connecting to local|x.x.x.x|:80... seconds 0.00, connected. Created socket 1896. Releasing 0x003e32b0 (new refcount 1). ---request begin--- GET /site/ HTTP/1.0 User-Agent: Wget/1.11.4 Accept: */* Host: local Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 401 Access Denied Server: Microsoft-IIS/5.1 Date: Tue, 14 Jul 2009 13:39:04 GMT WWW-Authenticate: Negotiate WWW-Authenticate: NTLM Content-Length: 4431 Content-Type: text/html ---response end--- 401 Access Denied Closed fd 1896 Unknown authentication scheme. Authorization failed.
関連するバグチケットへのリンクを追加すると便利です – Daenyth
それが本当であるかどうかまだテストすることができません。しかし、私はNTLMの場合、stdoutで異なる動作を確認します。 http://www.mail-archive.com/[email protected]/msg00003.html –
私もそれが私のために働くことを確認することはできません。 'wget --version'は' cygwin上に構築されたGNU Wget 1.12を報告します。 + digest + ipv6 + nls + ntlm + opie + md5/openssl + https -gnutls + openssl + iri'のようになります。しかし、私のケースではサーバは 'WWW-Authenticate:Negotiate'だけを提供しています(これは' NTLM'または 'Kerberos' - 交渉されると思います)。 –