473,395 Members | 1,761 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,395 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 2105
..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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.