windows authentication (webservice security)

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

  1. #1

    Default windows authentication (webservice security)

    I'm using a lan with domain server under win200, and, in the same network,
    but in an other machine, i've installed a webservice.
    This second server is under win2003.

    I need to allow access to the webservice ONLY for authenticated user (user
    in the main domain), i've configureted the file web.config, but the server
    doesn't recognize the user as connected into the domain, and so it doesn't
    grant access to the webservice to anyone.
    I suppose the problem is due to the windows authentication, in fact if i try
    to open the .asmx page from the browser, it asks userid and password,
    instead of using windows integreted authentication.
    The service I need is for use only in the private lan and it should be
    launched by an executable in local machines (not with browser)

    Does anyone can help me??

    Thanks

    Marco

    PS. Sorry for my english!!!!


    Marco Guest

  2. Similar Questions and Discussions

    1. WebService Authentication
      Hi Experts, I have a ASP.Net application which consumes a ASP.Net WebService. In both these applications I have enabled Anonymous access and...
    2. ASP.NET Site/Webservice and Windows/Form authentication
      Hi All I have an ASP.NET site which runs using Windows(NTLM) authentication over SSL. I have a webservice where a vendor is only able to call...
    3. problem accessing webservice if enabling windows integrated authentication
      Hi,all webservice experts Here is my problem: when I try to call a webservice from my web application, I got access denied 401 error Here is...
    4. Forms authentication with Windows authentication
      Hi, I have an ASP.NET web site that uses IIS Basic Authentication and accesses an OLAP Server at various stages. The OLAP Server authentication...
    5. Basic Authentication, WebService
      I did the following to add http basic authentication for calling a webservice: chz11086.HelloAuthTestService service = new...
  3. #2

    Default Re: windows authentication (webservice security)

    Hello Marco,

    You need to set the Default credentials to the web service proxy.
    something like...

    proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

    HTH
    Regards,
    Dilip Krishnan
    MCAD, MCSD.net
    dkrishnan at geniant dot com
    [url]http://www.geniant.com[/url]
    > I'm using a lan with domain server under win200, and, in the same
    > network,
    > but in an other machine, i've installed a webservice.
    > This second server is under win2003.
    > I need to allow access to the webservice ONLY for authenticated user
    > (user
    > in the main domain), i've configureted the file web.config, but the
    > server
    > doesn't recognize the user as connected into the domain, and so it
    > doesn't
    > grant access to the webservice to anyone.
    > I suppose the problem is due to the windows authentication, in fact if
    > i try
    > to open the .asmx page from the browser, it asks userid and password,
    > instead of using windows integreted authentication.
    > The service I need is for use only in the private lan and it should be
    > launched by an executable in local machines (not with browser)
    > Does anyone can help me??
    >
    > Thanks
    >
    > Marco
    >
    > PS. Sorry for my english!!!!
    >

    Dilip Krishnan 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