473,325 Members | 2,870 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,325 software developers and data experts.

Possible to know Client Identity calling a Server using .Net Remoting?

I have written a .NET remoting app and I would like to know the identity of
the client that calls my Server. Is there a way to do it?
Or do I have to pass it as parameter in each of the method exposed to the
clients?

Thanks,
José
Nov 15 '05 #1
3 2114
..Net Remoting doesn't provide any "out of the box" mean to discover or
assert the client identity. First, you can implement your own identity flow
mechanism by extending the remoting stack. Second, you can opt for the http
channel and IIS as a container for your remoted objects so that you leverage
the built-in capabilities from IIS.

"José Joye" <jo*******@KILLTHESPAMSbluewin.ch> wrote in message
news:ed**************@tk2msftngp13.phx.gbl...
I have written a .NET remoting app and I would like to know the identity of the client that calls my Server. Is there a way to do it?
Or do I have to pass it as parameter in each of the method exposed to the
clients?

Thanks,
José

Nov 15 '05 #2
You might be able to use the current Principal object to determine the
identity of the caller. Of coure , it depends on your authentication
mechanism.
"José Joye" <jo*******@KILLTHESPAMSbluewin.ch> wrote in message news:<ed**************@tk2msftngp13.phx.gbl>...
I have written a .NET remoting app and I would like to know the identity of
the client that calls my Server. Is there a way to do it?
Or do I have to pass it as parameter in each of the method exposed to the
clients?

Thanks,
José

Nov 15 '05 #3
I'm not too sure I understand what you mean...
Does it mean that the thread activated when the request is received is
launched under the client credentials?

Thanks,
José
"Priya" <pr*****@vsnl.com> wrote in message
news:b9*************************@posting.google.co m...
You might be able to use the current Principal object to determine the
identity of the caller. Of coure , it depends on your authentication
mechanism.
"José Joye" <jo*******@KILLTHESPAMSbluewin.ch> wrote in message

news:<ed**************@tk2msftngp13.phx.gbl>...
I have written a .NET remoting app and I would like to know the identity of the client that calls my Server. Is there a way to do it?
Or do I have to pass it as parameter in each of the method exposed to the clients?

Thanks,
José

Nov 15 '05 #4

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

Similar topics

3
by: José Joye | last post by:
I have written a .NET remoting app and I would like to know the identity of the client that calls my Server. Is there a way to do it? Or do I have to pass it as parameter in each of the method...
3
by: Deepal | last post by:
Hi; I'm doing an example program from a book regarding .NET Remoting. Both the Client and Server are C# Console Applications. Server Code is using System; using System.Runtime.Remoting;...
7
by: DW | last post by:
Hi, Here is my question. I want to push security prices to the desktop from the server. Whenever there is a new price in the database, the server notifies the client. How can this be done in...
14
by: Ray5531 | last post by:
I have a console application in my local computer which I like to use remoting in it,to instanciate an object (MyClass.dll) in a web application(its bin folder) in a completely seperated box(in the...
4
by: Sharon | last post by:
Hi, I'm using the remoting, and I have a remoting object that has a public event that other processes should register to it. But when the client process is registering to the remote event, it...
4
by: dynastar | last post by:
I'm trying to send custom COMExceptions from my C# server. My test client in C# has no problem reading the HRESULT I send (say, 0x80040002). Needless to say, the MFC client in C++ allows this...
13
by: ThunderMusic | last post by:
Hi, I have to develop an application that will consist of a service and a windows forms application... the service could be on a distant server but I need to authenticate the user as being part...
0
by: daniel gabriel | last post by:
Hello. I'm working on a distributed application consisting of a single server, a single client, and a number of local applications. The client and the local applications are on the same machine,...
1
by: hocker | last post by:
I have created a client-server application using .NET remoting in C#. The client initiates a call to the server then subscribes to events from the server, using an abstract class which contains the...
5
by: Simon | last post by:
I heard that we could do that by using AJAX. Could anybody share how to do it? Thanks.
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.