cURL / Mailing Lists / curl-library / Single Mail

curl-library

Test 2032 failing with NSS backend

From: Paul Howarth <paul_at_city-fan.org>
Date: Thu, 11 Oct 2012 13:24:10 +0100

I'm seeing the same failure on Fedora 16, 17, 18 and Rawhide:

test 2032...[NTLM connection mapping]
./libtest/libntlmconnect http://127.0.0.1:8320/2032 >log/stdout2032
2>log/stderr2032
data FAILED:
--- log/check-expected 2012-10-11 10:47:38.010479596 +0100
+++ log/check-generated 2012-10-11 10:47:38.010479596 +0100
@@ -14,15 +14,3 @@
WWW-Authenticate: Basic realm="testrealm"
This is a bad password page!
-HTTP/1.1 401 NTLM intermediate (2)
-Server: Microsoft-IIS/5.0
-Content-Type: text/html; charset=iso-8859-1
-Content-Length: 33
-WWW-Authenticate: NTLM
TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
-
-HTTP/1.1 200 Things are fine in server land
-Server: Microsoft-IIS/5.0
-Content-Type: text/html; charset=iso-8859-1
-Content-Length: 32
-
-Finally, this is the real page!
== Contents of files in the log/ dir after test 2032
=== Start of file check-expected
HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 29
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm"
This is a bad password page
HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 29
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm"
This is a bad password page
HTTP/1.1 401 NTLM intermediate (2)
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 33
WWW-Authenticate: NTLM
TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
HTTP/1.1 200 Things are fine in server land
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 32
Finally, this is the real page
=== End of file check-expected
=== Start of file check-generated
HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 29
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm"
This is a bad password page
HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 29
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm"
This is a bad password page
=== End of file check-generated
=== Start of file http_server.log
10:47:37.128590 ====> Client connect
10:47:37.128658 TCP_NODELAY set
10:47:37.128685 accept_connection 3 returned 4
10:47:37.128714 accept_connection 3 returned 0
10:47:37.128744 Read 108 bytes
10:47:37.128767 Process 108 bytes request
10:47:37.128795 Got request: GET /20320100 HTTP/1.1
10:47:37.128818 Requested test number 2032 part 100
10:47:37.128885 - request found to be complete
10:47:37.128937 Wrote request (108 bytes) input to log/server.input
10:47:37.128971 Send response test2032 section <data100>
10:47:37.129125 Sent off 200 bytes
10:47:37.129180 Sent off 21 bytes
10:47:37.129217 Response sent (221 bytes) and written to
log/server.response
10:47:37.129244 => persistant connection request ended, awaits new
request
10:47:37.129385 ====> Client connect
10:47:37.129412 TCP_NODELAY set
10:47:37.129446 accept_connection 3 returned 5
10:47:37.129484 accept_connection 3 returned 0
10:47:37.129516 Read 108 bytes
10:47:37.129540 Process 108 bytes request
10:47:37.129566 Got request: GET /20320100 HTTP/1.1
10:47:37.129589 Requested test number 2032 part 100
10:47:37.129651 - request found to be complete
10:47:37.129684 Wrote request (108 bytes) input to log/server.input
10:47:37.129711 Send response test2032 section <data100>
10:47:37.129823 Sent off 200 bytes
10:47:37.129871 Sent off 21 bytes
10:47:37.129905 Response sent (221 bytes) and written to
log/server.response
10:47:37.129925 => persistant connection request ended, awaits new
request
10:47:37.130107 ====> Client connect
  10:47:37.130136 TCP_NODELAY set
10:47:37.130158 accept_connection 3 returned 6
10:47:37.130179 accept_connection 3 returned 0
10:47:37.194504 Read 127 bytes
10:47:37.194542 Process 127 bytes request
10:47:37.194567 Got request: GET /20320200 HTTP/1.1
10:47:37.194581 Requested test number 2032 part 200
10:47:37.194619 - request found to be complete
10:47:37.194634 Received NTLM type-1, sending back data 1201
10:47:37.194652 Wrote request (127 bytes) input to log/server.input
10:47:37.194668 Send response test2032 section <data1201>
10:47:37.194744 Sent off 200 bytes
10:47:37.194768 Sending response failed. Only (200 bytes) of (258
bytes) were sent
10:47:37.194783 instructed to close connection after server-reply
10:47:37.194795 ====> Client disconnect 0
10:47:37.244865 Connection closed by client
10:47:37.244900 ====> Client disconnect 0
10:47:37.244942 Connection closed by client
10:47:37.244960 ====> Client disconnect 0
=== End of file http_server.log
=== Start of file server.input
GET /20320100 HTTP/1.1
Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
Host: 127.0.0.1:8320
Accept: */*
GET /20320100 HTTP/1.1
Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
Host: 127.0.0.1:8320
Accept: */*
GET /20320200 HTTP/1.1
Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
Host: 127.0.0.1:8320
Accept: */*
=== End of file server.input
=== Start of file server.response
HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 29
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm"
This is a bad password page
HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 29
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm"
This is a bad password page
HTTP/1.1 401 NTLM intermediate (2)
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 33
WWW-Authenticate: NTLM
TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAA
=== End of file server.response
=== Start of file stderr2032
  URL: http://127.0.0.1:8320/2032
* About to connect() to 127.0.0.1 port 8320 (#0)
* Trying 127.0.0.1...
* connected
* Connected to 127.0.0.1 (127.0.0.1) port 8320 (#0)
* Server auth using Basic with user 'testuser'
> GET /20320100 HTTP/1.1
Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
Host: 127.0.0.1:8320
Accept: */*
Warning: socket did not open immediately for new handle (trying again)
libntlmconnect.c:224 num_handles 1 timeout 1
< HTTP/1.1 401 Need Basic or NTLM auth
< Server: Microsoft-IIS/5.0
< Content-Type: text/html; charset=iso-8859-1
< Content-Length: 29
< WWW-Authenticate: NTLM
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="testrealm"
<
* Connection #0 to host 127.0.0.1 left intact
* About to connect() to 127.0.0.1 port 8320 (#1)
* Trying 127.0.0.1...
* connected
* Connected to 127.0.0.1 (127.0.0.1) port 8320 (#1)
* Server auth using Basic with user 'testuser'
> GET /20320100 HTTP/1.1
  Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
Host: 127.0.0.1:8320
Accept: */*
Warning: socket did not open immediately for new handle (trying again)
libntlmconnect.c:224 num_handles 2 timeout 1
< HTTP/1.1 401 Need Basic or NTLM auth
< Server: Microsoft-IIS/5.0
< Content-Type: text/html; charset=iso-8859-1
< Content-Length: 29
< WWW-Authenticate: NTLM
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="testrealm"
<
* About to connect() to 127.0.0.1 port 8320 (#2)
* Trying 127.0.0.1...
* connected
* Connected to 127.0.0.1 (127.0.0.1) port 8320 (#2)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* Server auth using NTLM with user 'testuser'
> GET /20320200 HTTP/1.1
Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
Host: 127.0.0.1:8320
Accept: */*
Warning: socket did not open immediately for new handle (trying again)
* Connection #1 to host 127.0.0.1 left intact
libntlmconnect.c:224 num_handles 3 timeout -1
* Closing connection #2
=== End of file stderr2032
=== Start of file stdout2032
HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 29
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm"
This is a bad password page
HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 29
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm"
This is a bad password page
=== End of file stdout2032

This is the only test that is failing for me. Anyone else seeing this?

Paul.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-10-11