Groups | Blog | Home
all groups > dotnet web services > january 2005 >

dotnet web services : win authentication


Dilip Krishnan
1/25/2005 4:31:53 PM
Hello EtaBeta" tiscali.it,
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
http://www.geniant.com

[quoted text, click to view]

EtaBeta
1/25/2005 7:32:59 PM
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
1/27/2005 4:47:51 PM
Hello Marco,
proxy is the web services proxy that you have.. hope that clears the confusion

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

[quoted text, click to view]

Marco
1/27/2005 7:28:19 PM
[quoted text, click to view]

Thanks for your answer!
Could you learn me also how to set the credential in the proxy? I tryed to
find a way but i didn't...

Thanks !!!

Marco

AddThis Social Bookmark Button