Professional Web Applications Themes

Unix sockets and authentication - UNIX Programming

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....

  1. #1

    Default Unix sockets and authentication

    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.


    passolo Guest

  2. #2

    Default Re: Unix sockets and authentication

    In article <94LYb.60705$risq.qc.ca>, passolo wrote: 
    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
    Nils Guest

  3. #3

    Default Re: Unix sockets and authentication

    passolo <ca> writes:
     
     
     


    FYI, There is a feature similar to this available
    in Solaris Express http://wwws.sun.com/software/solaris/solaris-express/
    (As doented in socket.h(3HEAD) and getpeerucred(3C); unfortunately,
    at this time the only way to read the doentation 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.
    Casper Guest

  4. #4

    Default Re: Unix sockets and authentication

    Casper H.S. Dik <com> wrote: 

    Thanks!

    passolo Guest

  5. #5

    Default Re: Unix sockets and authentication

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

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


    -netch-
    Valentin Guest

Similar Threads

  1. Replies: 3
    Last Post: April 18th, 06:24 PM
  2. UNIX domain sockets
    By Erik in forum PERL Miscellaneous
    Replies: 3
    Last Post: November 2nd, 12:43 AM
  3. problem with unix sockets
    By Christian in forum UNIX Programming
    Replies: 3
    Last Post: October 7th, 08:40 PM
  4. UNIX Domain sockets on HPUX
    By Russ Jones in forum PERL Modules
    Replies: 1
    Last Post: June 27th, 12:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139