From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "tenspd137 ." Newsgroups: gmane.emacs.bugs Subject: bug#35969: 26.2, Excorporate Date: Thu, 30 May 2019 11:25:39 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152211"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35969@debbugs.gnu.org To: Thomas Fitzsimmons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 30 19:26:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWOod-000dQU-GP for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2019 19:26:11 +0200 Original-Received: from localhost ([127.0.0.1]:57093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWOoc-0006Rg-IO for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2019 13:26:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWOoV-0006P1-3i for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 13:26:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWOoT-0001um-V9 for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 13:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48464) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWOoT-0001ud-Ry for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 13:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hWOoT-0003ec-OD for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 13:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "tenspd137 ." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 May 2019 17:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35969 X-GNU-PR-Package: emacs Original-Received: via spool by 35969-submit@debbugs.gnu.org id=B35969.155923716014038 (code B ref 35969); Thu, 30 May 2019 17:26:01 +0000 Original-Received: (at 35969) by debbugs.gnu.org; 30 May 2019 17:26:00 +0000 Original-Received: from localhost ([127.0.0.1]:33775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWOoR-0003eM-My for submit@debbugs.gnu.org; Thu, 30 May 2019 13:26:00 -0400 Original-Received: from mail-oi1-f173.google.com ([209.85.167.173]:41874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWOoP-0003e4-E4 for 35969@debbugs.gnu.org; Thu, 30 May 2019 13:25:57 -0400 Original-Received: by mail-oi1-f173.google.com with SMTP id b21so1619523oic.8 for <35969@debbugs.gnu.org>; Thu, 30 May 2019 10:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lH6qTbde9EMgWrFY4ypGSjC4QVPWMCrTPap/QMw3p7w=; b=kQDXb9t5WHef4j7de72YKTTNBbIYKmfzOkw9GO3Saq8aBCnHl3u/+NW+8dFzpNc1d5 ABbJ84+8I23RPH+xno/iMehVIFzcinl/35MzWqBP6tmMzIvM98PKDe+27NyS5CihUG8T 5PDJ4ueTX/qiNJDmwMu9tTp2bnaQfY1Q8rEyBJJGKYxlpOKi2zc4lc6Xej5bl+3BuoWn uL0MJa4jxiNh8s3bseiPuUs3ywnqYOBn+20QnLr6k0008RfoxFkKxjF1PJr+ewV0hunL ITwSSnr3yFYAg99p3HSNa5GvSyUKMFNNKLj5f+p/U2DSOt1ZIoOTnnPEVyjtXM0Ku/TW RlfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lH6qTbde9EMgWrFY4ypGSjC4QVPWMCrTPap/QMw3p7w=; b=L91AhKq8yMQJE4YjMMS0Fls87a2okipiZGFJDT+kw7SnfgmZTvxt/Ez+zYtArE4eGg 3A5+SYSqSpbR1M7y8AhZ0KGi1L3t4soE6wt3alxh5KX2Fi3WBvL/35szodrDAwWJo3zF 46ys3lxotW0smCntT3xIQkTYJ/1ykZy1qpVuKBwESo1blQCsKDXj5XnXjpmCeGNwsBTn Ebc/OxNDmD3O/PdIQDtrCRbMB8OMSZyB9xHBojVavAhNCZlATGJnsE6NyGFiD0Q8WmGK Om2MoFf1yintHomuV+H1jc9PqVHGPEZT/CIJ3RspdY7QEhD1gwpc2N9c/HD1k+AOA7TG 8Hcg== X-Gm-Message-State: APjAAAV8MxwCVjmVrnlg0pmxB3wue4aD+bDhJFeoPXHZOvXpl1MV5BiJ Cpr1RavZNqC7Ann8t7dCew1XhwQarNSkC2plH4nAEu/jLkM= X-Google-Smtp-Source: APXvYqwO9sU5aQ+ST+bS1+rN5Z+Kz7SQ1YqYT4PEjINMomHVX9NGsncygwOE33OYn4iiZcb71DIHwHI7BtDPRMcI5ws= X-Received: by 2002:aca:f2d5:: with SMTP id q204mr1663844oih.14.1559237151486; Thu, 30 May 2019 10:25:51 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159931 Archived-At: So, I don't know what this is indicative of, but if I try to use emacs through a proxy and use the httpbin.org example, the result buffer shows: HTTP/1.1 401 UNAUTHORIZED Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * Date: Thu, 30 May 2019 17:22:48 GMT Referrer-Policy: no-referrer-when-downgrade Server: nginx WWW-Authenticate: Basic realm="Fake Realm" X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1; mode=block Content-Length: 0 Connection: Close but then if I repeat the url-retrieve-synchrounously call HTTP/1.1 200 OK Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * Content-Encoding: gzip Content-Type: application/json Date: Thu, 30 May 2019 17:23:59 GMT Referrer-Policy: no-referrer-when-downgrade Server: nginx X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1; mode=block Content-Length: 59 Connection: Close { "authenticated": true, "user": "user" } So - it need two calls - one to authenticate and one to retrieve? Thanks! -C On Thu, May 30, 2019 at 11:06 AM tenspd137 . wrote: > > Thomas- > > Here is the httpbin.org authentication test buffer (through emacs / proxy) > > HTTP/1.1 401 UNAUTHORIZED > Access-Control-Allow-Credentials: true > Access-Control-Allow-Origin: * > Date: Thu, 30 May 2019 15:32:25 GMT > Referrer-Policy: no-referrer-when-downgrade > Server: nginx > WWW-Authenticate: Basic realm="Fake Realm" > X-Content-Type-Options: nosniff > X-Frame-Options: DENY > X-XSS-Protection: 1; mode=block > Content-Length: 0 > Connection: Close > > and here is the failed excahnge.asmx buffer > > HTTP/1.1 401 Unauthorized > Server: Microsoft-IIS/10.0 > request-id: fb0b957e-f55c-49b9-9fb5-fd9a58a5f31a > X-WSSecurity-Enabled: True > X-WSSecurity-For: Logon > X-FederationTrustTokenIssuerUri: urn:federation:MicrosoftOnline > X-WSSecurity-SymmetricKey-Enabled: True > X-WSSecurity-X509Cert-Enabled: True > X-OAuth-Enabled: True > X-Powered-By: ASP.NET > X-FEServer: SN6PR1501CA0010 > WWW-Authenticate: Basic Realm="" > Date: Thu, 30 May 2019 15:36:43 GMT > Connection: close > Content-Length: 0 > > and, as a bonus, the result of url-exchange.asmx from Emacs not using > a proxy on the "other" lan using url-retrieve-synchronusly > > HTTP/1.1 401 Unauthorized > Server: Microsoft-IIS/10.0 > request-id: 369ea2d9-8dce-408c-a38e-fb8035f98065 > X-WSSecurity-Enabled: True > X-WSSecurity-For: Logon > X-FederationTrustTokenIssuerUri: urn:federation:MicrosoftOnline > X-WSSecurity-SymmetricKey-Enabled: True > X-WSSecurity-X509Cert-Enabled: True > X-OAuth-Enabled: True > X-Powered-By: ASP.NET > X-FEServer: SN4PR0201CA0037 > WWW-Authenticate: Basic Realm="" > Date: Thu, 30 May 2019 16:40:48 GMT > Content-Length: 0 > > I tried to get logs from a successful exorporate useage, but the http > result buffers appear to come and go, and if I try URL-DEBUG, a lot > happens and eventually emacs on my laptop locks up, but if you want me > to try anything specific or there is a way to look at things step by > step, just let me know. > > Thanks! > > -C > > > > On Wed, May 29, 2019 at 4:10 PM tenspd137 . wrote: > > > > Yes - I will try to do it tomorrow morning. Thanks again! > > > > -C > > > > On Wed, May 29, 2019 at 4:01 PM Thomas Fitzsimmons wrote: > > > > > > Hi, > > > > > > "tenspd137 ." writes: > > > > > > > Sorry for questioning - but I don't think it is successful in the > > > > basic authentication case - unless I am misreading some of the output. > > > > > > No problem; I quoted the "status=200" line which I think indicates that > > > it was successful. But url creates another buffer and puts the > > > authentication response in there; to be sure, you'd need to check that. > > > I think for httpbin.org, it will contain the headers and then: > > > > > > { > > > "authenticated": true, > > > "user": "user" > > > } > > > > > > just like your wget experiment. > > > > > > For your prior test run, the secondary buffer is mentioned in > > > *URL-DEBUG* here: > > > > > > > retrieval -> Synchronous fetching done (#) > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > > > > Can you redo the httpbin.org authentication test within Emacs, through > > > the proxies, and paste the contents of that secondary/response buffer? > > > > > > It would be helpful if you could paste the redacted secondary/response > > > buffer contents for the failed Exchange authentication too. > > > > > > > As for testing authentication against no proxy - yes, I can. In fact, > > > > I actually have. It works. > > > > > > [...] > > > > > > OK, good to know, thanks. The use case makes sense. > > > > > > Thanks, > > > Thomas