Re: help on caller credentials !! :-(



You shouldn't run as local service. You should run as Network Service
instead, as that will allow the service to access the network and
participate in domain-based authentication.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"calderara" <calderara@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:551CC5DF-DF28-403E-A30C-A55CD8A2C520@xxxxxxxxxxxxxxxx
Dear all,

I start to loose my hairs. Hoep someone could help me to recover..:-)
I have build a remote object hosted in a Windows Service runing as
LocalService.
I have then a claient application which calling that remote object and
based
on the caller credential I shouzld authorise hit or not to access to back
end
database.

The situation is as follow :
My client is running as BOB. BOB is calling the remote object for data
storage. What I try to do is retriveing the caller credential from my
remote
object in order to athauticated for further process. The problem is that
when
I check the wndows identity on my server side, it return the context on
which
my service is running and not my caller's context.

MY server config file is as follow :

<channels>
<!--<channel ref="tcp" port="8090"
useDefaultCredentials="False">-->
<channel ref="tcp" port="8090" secure="True"
impersonationLevel="Impersonate" protectionLevel="EncryptAndSign">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>

Note that I am using .NEt 2.0

Thnaks again for your help ( I am fighting for a full week now on this
grrr
:-()
regards
serge


.



Relevant Pages

  • Re: sharepoint error
    ... Let's make sure the Local Service and Network Service ... When I browse to server's ip address, I> get the Welcome to Windows Small Business Server 2003 home page. ... Consider> granting access rights to the resource to the ASP.NET request identity. ... > t context) +97 ...
    (microsoft.public.windows.server.sbs)
  • Re: help on caller credentials !! :-(
    ... you get the client identity from Thread.CurrentPrincipal ... I have build a remote object hosted in a Windows Service runing as ... I check the wndows identity on my server side, it return the context ...
    (microsoft.public.dotnet.security)
  • Re: remoting options
    ... client project and add a remote object reference just like they have the ... > apply if you're using IIS to host the server) and the version of the ... > application that you want the server to use. ... > client code somehow so that it can be loaded/instantiated on the client. ...
    (microsoft.public.dotnet.distributed_apps)
  • RE: Backup, Monitoring and Reporting:Program cannot display the we
    ... Reporting and Backup page from the Server Management console. ... a.Add Local Service and Network Service account Read & Execute, ... IIS 6.0 Compression Corruption Causes Access Violations ... Install MBExplorer by installing IIS 6 Resource Kit Tools: ...
    (microsoft.public.windows.server.sbs)
  • Re: remoting serialization exception
    ... Is the same remote object being ... >> client and server using slightly different versions of the remote object ... > objectId, BinaryAssemblyInfo assemblyInfo, SizedArray ...
    (microsoft.public.dotnet.languages.csharp)