Re: How to InitializeSecurity() in a Windows Service



Post those in the right group:

microsoft.public.win32.programmer.networks.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Joao Rego" <JoaoRego@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A0388F48-9A0F-4EF2-A0D6-5EB4D36C047A@xxxxxxxxxxxxxxxx
> Thaks for the tip... I thougth about that digital certificate (something
> easy), but I will go to investigate more about IPSec... probably more
> questions will arraive...
> Tks,
> joao rego
>
> "Brian Muth" wrote:
>
>>
>> "Joao Rego" <JoaoRego@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:144D83CC-517F-46C6-AB83-7B8E1AC5CB4E@xxxxxxxxxxxxxxxx
>> > Hi Brian,
>> >
>> > Well, I want only my client machines to have access to communicate with
>> > my
>> > socket in my service. the socket is in a thread.
>> > I don't know how setting security for the service works for the socket.
>> > I
>> > don't want anyone else to find my socket port and stuff garbage in it,
>> > I
>> > hope
>> > you understand what I mean...
>> >
>>
>> CoInitializeSecurity has nothing to do with socket security.
>> CoInitializeSecurity only affects DCOM connections.
>>
>> There are no security features built in to the WinSock API, because
>> security
>> is not a Basically you have to roll your own security. There are a
>> gazillion ways to implement this. For example, your listener may insist
>> on
>> receiving a valid digital certificate before executing any functions on
>> behalf of the caller. It's really up to you.
>>
>> You also might want to read up on IPSec, which might be a very elegant
>> way
>> of establishing rock-solid security between the clients and the server.
>>
>> Brian
>>
>>
>>
>>
>>
>>


.



Relevant Pages

  • Re: Error when calling a webservice from a windows service
    ... security at server i am using HTTPWebRequest. ... "The remote server returned an error: ... System.IO.Stream httpRequestStream = null; ... connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: [Slightly OT] - Socket Security
    ... > spamtotrash@toomuchfiction.com (Kevin Collins) wrote: ... >> I am working on a security project identifying, ... What are the issues if a socket is ... > I think most versions of Unix ignore the permissions on Unix domain ...
    (comp.unix.shell)
  • [patch 024/198] SELinux: add support for NETLINK_KOBJECT_UEVENT
    ... This patch adds SELinux support for the KOBJECT_UEVENT Netlink family, ... this family simply defaults to the default Netlink socket ... Security identifier indices for initial entities ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Raw Sockets and Access Denied
    ... Having established that high security rights are required to use raw ... writing a COM object to do the socket work instead, ... What I really want to know is on what security object do I need rights on to ...
    (microsoft.public.dotnet.security)
  • Re: URL filtering using LSP
    ... Microsoft MVP, MCSD ... E.g. in your WSPRecv implementation. ... mark the socket as readable and return your own response ... If you want to close the socket, ...
    (microsoft.public.win32.programmer.networks)