Asterisk
  1. Asterisk
  2. ASTERISK-17224

Manager Event Interface w/Digest authentication does not work!

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Core/HTTP
    • Labels:
      None
    • Mantis ID:
      18598
    • Regression:
      No

      Description

      Hello all!

      Experience problems when using the interface with Digest authentication:
      /amanager => HTML Manager Event Interface w/Digest authentication
      /arawman => Raw HTTP Manager Event Interface w/Digest authentication
      /amxml => XML Manager Event Interface w/Digest authentication
      (http show status)

      For example queries on Asterisk:

      kremlin:~# curl -u "admin:12345" --digest -v "http://127.0.0.1:8088/amxml?action=CoreShowChannels" [^]

      Get:

      • About to connect() to 127.0.0.1 port 8088 (#0)
      • Trying 127.0.0.1... connected
      • Connected to 127.0.0.1 (127.0.0.1) port 8088 (#0)
      • Server auth using Digest with user 'admin'
        > GET /amxml?action=CoreShowChannels HTTP/1.1
        > User-Agent: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
        > Host: 127.0.0.1:8088
        > Accept: /
        >
        < HTTP/1.1 401 Unauthorized
        < Server: Asterisk/1.8.1.1
        < Date: Tue, 11 Jan 2011 18:50:21 GMT
        < Connection: close
        < Cache-Control: no-cache, no-store
        < Content-Length: 210
        < WWW-authenticate: Digest algorithm=MD5, realm="asterisk", nonce="38ec76af", qop="auth", opaque="38ec76af"
        < Content-type: text/html
        <
      • Closing connection #0
      • Issue another request to this URL: 'http://127.0.0.1:8088/amxml?action=CoreShowChannels' [^]
      • About to connect() to 127.0.0.1 port 8088 (#0)
      • Trying 127.0.0.1... connected
      • Connected to 127.0.0.1 (127.0.0.1) port 8088 (#0)
      • Server auth using Digest with user 'admin'
        > GET /amxml?action=CoreShowChannels HTTP/1.1
        > Authorization: Digest username="admin", realm="asterisk", nonce="38ec76af", uri="/amxml?action=CoreShowChannels", cnonce="NzM0Nzg2", nc=00000001, qop="auth", response="517711f9bf37372916d89746943f0030", opaque="38ec76af", algorithm="MD5"
        > User-Agent: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
        > Host: 127.0.0.1:8088
        > Accept: /
        >
        < HTTP/1.1 401 Unauthorized
        < Server: Asterisk/1.8.1.1
        < Date: Tue, 11 Jan 2011 18:50:21 GMT
        < Connection: close
        < Cache-Control: no-cache, no-store
        < Content-Length: 210
      • Authentication problem. Ignoring this.
        < WWW-authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1032537c", qop="auth", opaque="1032537c"
        < Content-type: text/html
        <
        <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
        <html><head>
        <title>401 Unauthorized</title>
        </head><body>
        <h1>401 Unauthorized</h1>

      <hr />
      <address>Asterisk Server</address>
      </body></html>

      • Closing connection #0
        kremlin:~#

      The problem seems to be old. Can anybody explain and help me?

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Sergey Korobeynikov created issue -
          Erin Spiceland made changes -
          Field Original Value New Value
          issue.field.mantisimportkey 18598 40992
          Erin Spiceland made changes -
          Workflow jira [ 82812 ] Subtask and Courtesy Workflow [ 105673 ]
          Erin Spiceland made changes -
          Assignee Sean Bright [ seanbright ]
          Erin Spiceland made changes -
          Link This issue is related to SWP-2891 [ SWP-2891 ]
          Matt Jordan made changes -
          Remote Link This issue links to "SWP-2891 [18598] [Core/HTTP] Manager Event Interface w/Digest authentication does not work! (Web Link)" [ 12134 ]

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: