integrated windows authentication - web services

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default integrated windows authentication - web services

    I have a performance question.

    I have a web service in a machine (not in the a domain at
    all) and the virtual directory is setup for integrated
    windows auth. The server is WIN2003.

    When I call the service from my code I set up a
    credential cache with the appropriate credentials and the
    call succeeds.

    My question is - why when I look at the IIS logs on the
    server does it show 2 401 responses prior to the third
    attempt showing up with the correct username ?

    The only way this doesn't happen is if I enable anonymous
    access.

    In reading various posts I thought that by removing some
    of the other auth methods (basic, digest) from the
    authentication manager that it might resolve this, but it
    had no effect.

    BTW the security logs just show a sucessful logon using
    ntlm.

    Any thoughts on how to avoid this ?


    I'm wondering about the
    Tim B Guest

  2. Similar Questions and Discussions

    1. Integrated Windows Authentication, ASP.NET and FoxPro
      Hello, Since it is the first time I'm posting in these groups, I believe a (short) introduction of myself would not be a bad thing. I am...
    2. Integrated Authentication, Impersonation, and Web Services
      Environment: OS: Windows 2003 IIS: 6 ..Net Framework: 1.1 Authentication Scheme: Windows Integrated Authentication Impersonation: Enabled ...
    3. aspnet and windows integrated authentication, hot to log out?
      hi, i'm devoloping an intranet application based on ASP.NET and windows integrated authentication. how can i force the log out of a user to...
    4. .NET, Integrated Windows Authentication, and more
      First of all, with identity impersonate = true, I still get this blasted error: Exception Details: System.Data.SqlClient.SqlException: Login failed...
    5. integrated Windows authentication
      Firstly, I'm running IIS 6.0 on Windows SErver 2003 that is also a DC. I have an asp page (default.asp) I am trying to access as my hom page for...
  3. #2

    Default RE: integrated windows authentication - web services

    Hi Tim,

    Currently I have not a specific answer for this issue. Please tell me the
    sub error code of the 401 error. (The 401 error has 5 sub error codes.)

    In addition, I have found an article regarding this issue for your
    reference:

    HTTP Security and ASP.NET Web Services
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebsrv/ht[/url]
    ml/httpsecurity.asp

    I hope it helps.

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    <MCSD>
    Get Secure! ¨C [url]www.microsoft.com/security[/url]
    This posting is provided "as is" with no warranties and confers no rights.

    Jacob Yang [MSFT] Guest

  4. #3

    Default RE: integrated windows authentication - web services

    Thats all interesting information, but if you read the
    original post you will note this is not interaction with
    IE, rather .NET code calling a webservice.

    So I'd still like an answer to the original question..
    I am providing all the correct credentials to the web
    service proxy, why does it attempt to connect as
    anonymous once, then once again and finally on the third
    attempt send the credentials.

    Is there way around this ? Its hard enough to deal with
    the performance issues inherent with web services
    architecture to begin with, not to mention the extra
    round trips being made becuase it doesn't pass the
    credentials along the first time.

    Tim


    >-----Original Message-----
    >Hi Tim,
    >
    >"401 2 2148074254" means no credential in current
    request. This is default
    >behavior between client and IIS server. If you browse a
    web page in a
    >virtrual folder with integrated windows authentication,
    you also will get
    >same log information. Form the log information, you can
    notice the client
    >(IE) will first send a request without credential, if
    this is rejected by
    >"401" it will resend the request with the credential.
    Since this wouldn't
    >affect the usage of web service, we don't need to pay
    many attention on
    >this issue.
    >
    >
    >Luke
    >Microsoft Online Partner Support
    >
    >Get Secure! [url]www.microsoft.com/security[/url]
    >(This posting is provided "AS IS", with no warranties,
    and confers no
    >rights.)
    >
    >.
    >
    TimB Guest

  5. #4

    Default RE: integrated windows authentication - web services

    Hi Tim,

    When .NT client access a web service on IIS server, it use same protocol
    with IE to IIS server. Therefore, we will get same result in the log. This
    is common round for a request and wouldn't impact the performance too much.

    Luke
    Microsoft Online Partner Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139