Unix Programming - Unix sockets and authentication

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > February 2004 > Unix sockets and authentication





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Unix sockets and authentication
passolo

2004-02-18, 1:34 am

Hello,

I am thinking switching an application from BSD sockets to Unix sockets because of their ability to authenticate (see SCM_CREDENTIALS) the user/process at the other end.

The VERSION section of the man 7 unix page on Linux is a bit worrysome - it mentions portability problems. If anyone has insights and examples I would appreciate, as I have zero experience with.

Regards.


Nils O. newsgroup user

2004-02-18, 1:34 am

In article <94LYb.60705$2g.39089@charlie.risq.qc.ca>, passolo wrote:
> Hello,
>
> I am thinking switching an application from BSD sockets to
>Unix sockets because of their ability to authenticate (see SCM_CREDENTIALS)
>the user/process at the other end.
>
> The VERSION section of the man 7 unix page on Linux is a bit worrysome -
>it mentions portability problems.
>If anyone has insights and examples I would appreciate, as I have zero experience
>with.

Just fyi, I found no feature similar to this on NetBSD..

--
Vennlig hilsen/Best Regards
Nils Olav Selåsdal
System Engineer
w w w . u t e l s y s t e m s . c o m
Casper H.S. Dik

2004-02-19, 2:34 pm

passolo <passolo@polymtl.ca> writes:

>Hello,


>I am thinking switching an application from BSD sockets to Unix sockets because of their ability to authenticate (see SCM_CREDENTIALS) the user/process at the other end.


>The VERSION section of the man 7 unix page on Linux is a bit worrysome - it mentions portability problems. If anyone has insights and examples I would appreciate, as I have zero experience with.



FYI, There is a feature similar to this available
in Solaris Express http://wwws.sun.com/software/solaris/solaris-express/
(As documented in socket.h(3HEAD) and getpeerucred(3C); unfortunately,
at this time the only way to read the documentation is to
download the the whole SOlaris Express release)


Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
passolo

2004-02-20, 7:35 am

Casper H.S. Dik <Casper.Dik@sun.com> wrote:
>
> FYI, There is a feature similar to this available
> in Solaris Express http://wwws.sun.com/software/solaris/solaris-express/
> (As documented in socket.h(3HEAD) and getpeerucred(3C); unfortunately,
> at this time the only way to read the documentation is to
> download the the whole SOlaris Express release)
>


Thanks!

Valentin Nechayev

2004-02-21, 8:34 am

>>> Nils O. Sel?sdal wrote:
[color=blue]
BSD sockets is interface, Unix sockets is namespace.
You can't switch from first one to second one.
[color=blue]
NOSs> Just fyi, I found no feature similar to this on NetBSD..

As BSD successor it has this feature by definition. Seek again.


-netch-
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com