473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

RE: How to Authenticate to WCF Service Via VPN

Hi Schmitz,

Have you got any progress on this issue?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

From: st*****@online.microsoft.com (Steven Cheng [MSFT])
Organization: Microsoft
Date: Thu, 17 Jul 2008 07:36:48 GMT
Subject: RE: How to Authenticate to WCF Service Via VPN

Thanks for your reply Schmitz,

So assigning the default networkCredential not work. Currently as for VPN
connected client, is it using the same user account as when you tested via
a non-VPN client? If the code work when not use VPN but fails (with
identical account) via VPN connection, we may need to focus on the VPN
part. Otherwise, I think the problem is still the client credential not
correctly be recognized by the server-side. for current security context,
you can use the following code to check it:

System.Security.Principal.WindowsIdentity.GetCurre nt()

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 21 '08 #1
1 3392
Steven,

I'm having a similar issue, but it doesn't involve a VPN.

1) User is logged into SUBDOM1.DOMAIN.GOV
2) Web server 1 is in SUBDOM1.DOMAIN.GOV
3) Web server 2 is in SUBDOM2.DOMAIN.GOV
3) On both web server apps, NTLM turned on, web.config is for Windows authentication.
4) User connects to .aspx on web server2. In the web page, HttpContext.Current.User.Identity shows NTLM authentication and subdom1\user as who authenticated. All is good.
5) In that same .aspx, trying to connect to a web service on web server 1 by setting webService.Credentials = System.Net.CredentialCache.DefaultCredentials gives a 401 error
6) Move everything on web server 2 to another web server in the SUBDOM1 domain and everything works OK.

It's like there's some sort of issues between SUBDOM1 and SUBDOM2 where it SUBDOM2 says "hey, sure, I can authenticate anyone in SUBDOM1 domain to use this code" but when it passes that authentication over to a server in SUBDOM1 it says "umm, sorry, buddy, but I don't recognize that credential, Unauthorized."

Is there any other way to set these parms or set other settings so the credentials can be passed back over to the web server in SUBDOM1?
Aug 5 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ram | last post by:
How to Authenticate NDS server using C#
3
by: GC | last post by:
I'm looking to build a web app that authenticates against my current active directory. Anyone have any examples on how to do this? Thanks!
1
by: Marc Eggenberger | last post by:
Hi there .. I have the following scenario. I have a Webservice which is running under Win2003/IIS6 with .Net1.1 The Service itselfs connects to a database which is a SQL 2000 on a Server in...
13
by: ALI-R | last post by:
I know how to authenticate to a webservice using either of these ways(Assuming that rService represents the webservice): 1) rService.Credentials = new...
0
by: Damian Cugley | last post by:
I am trying to write a console app that connects to an instance of Reporting Services' ReportServer service. I'm using custom authentication (based on FormsAuthentication) rather than Windows...
0
by: Codecommando | last post by:
Hi, I have a .Net 2.0 web service that is set for Windows authentication. Now, in my APS.Net 1.1 app, I am trying to connect to the service. I am using myService.Credentials =...
2
by: J-T | last post by:
I need to create a webserivce which is able to talk to the following components: 1) Another webservice which is written by java and talks to its own backend database to authenticate the users...
0
by: Lajus Norvejikus | last post by:
Hi all, I want to develop a web service to authenticate user/pass against a Active Directory domain. I only don't know how to authenticate the credentials user enters against a AD domain. Anyone...
1
by: fomalhaut | last post by:
Hi All, I'm builing an application that requires domain admin access to run, and I'm trying to allow for the application to be run as a normal user and allow the user to provide it with a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.