Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Passing Credential to SOAP via a .NET remoted object

Reply
Thread Tools

Passing Credential to SOAP via a .NET remoted object

 
 
Steve Drake
Guest
Posts: n/a
 
      02-13-2004
All,

I have a WEBPAGE that needs to pass the current credentials to a .NET
remoted object so this can pass the credentials to a SOAP WEBSERVICE (All
written in C#)

But I cannot see how I pass credentials to the remoted object, any ideas?

If there was no remote layer then I could just do :

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

But System.Net.CredentialCache.DefaultCredentials is not Serializable so
this does not work with the remeoting layer.

Steve



 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      02-13-2004
this can be done if the caller, remoting object and the webservice are all
on the same server. you can pass the handle to the credentials and perform
the impersonation before calling the soap method.

if more than 1 server is used, you will run into the 1 hop rule. you will
have to switch to digest authencation, turn on creditenals delegation. There
is little digest support in .net, so you will have to use the native api
(see kerberos documentation).

-- bruce (sqlwork.com)


"Steve Drake" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> All,
>
> I have a WEBPAGE that needs to pass the current credentials to a .NET
> remoted object so this can pass the credentials to a SOAP WEBSERVICE (All
> written in C#)
>
> But I cannot see how I pass credentials to the remoted object, any ideas?
>
> If there was no remote layer then I could just do :
>
> WebServiceObject.Credentials =
> System.Net.CredentialCache.DefaultCredentials;
>
> But System.Net.CredentialCache.DefaultCredentials is not Serializable so
> this does not work with the remeoting layer.
>
> Steve
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UNIX credential passing Kris Kennaway Python 4 05-31-2008 09:58 AM
SOAP XML Generation from a SOAP Object (Soap4r 1.5.4) Dan Fitzpatrick Ruby 1 07-16-2005 01:01 PM
Newbie Using a Remoted Object Problem Adam ASP .Net 0 04-19-2005 02:47 PM
Passing Credential to SOAP via a .NET remoted object Steve Drake ASP .Net Security 1 02-13-2004 05:26 PM
Passing Credential to SOAP via a .NET remoted object Steve Drake ASP .Net Web Services 1 02-13-2004 05:26 PM



Advertisments