473,407 Members | 2,320 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,407 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é
Jul 21 '05 #1
3 2106
..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é

Jul 21 '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é

Jul 21 '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é

Jul 21 '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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.