Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15472

NTLM auth fails if username with domain part is set in QNetworkProxy constructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 4.7.1, 4.7.3
    • None

    Description

      When username with domain part is set in QNetworProxy constructor:

      QNetworkProxy configuredProxy(QNetworkProxy::HttpProxy, url.host(), url.port(), "domain\\user", "password");
      QNetworkProxy::setApplicationProxy(configuredProxy);
      

      NTLM proxy auth fails (I believe that MD5 Digest auth fails too) because QAuthenticator treats "domain
      user" string as a single user name. At the moment of initialization authentication method is None and hence no username parsing is performed. Username should be re-parsed when auth method is changed by proxy reply HTTP headers. Attached patch fixes the problem.

      Attachments

        Issue Links

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

          Activity

            People

              shkearns Shane Kearns
              gonzo Oleksandr Tymoshenko
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes