Note that the user_access.c example needs updating for MultiNet 5.0 and later. The code assumes a BSD 4.3 format sockaddr, and it could have either a BSD 4.3 or BSD 4.4 format with MultiNet 5.0 and later. We have updated the example for MultiNet 5.2.

-----Original Message-----
From: Ken Connelly [mailto:ken.connelly@uni.edu]
Sent: Tuesday, October 17, 2006 10:21 PM
To: info-multinet@process.com
Subject: Re: Remote username from port number?


Check out user_access.c in the multinet examples directory
(multinet_root:[multinet.examples]).

-ken

Selden Ball wrote:

>Given the information provided in SYS$REM_ID
>(remote ip address and port number),
>what's the best way to determine the username associated with the telnet
>(or other tcp/ip) client, when that client software is running on another
>member of the same VMS cluster?
>
>I have to believe that this is "an already solved problem."
>
>All cluster members are running Multinet, of course.
>
>So far today, what I've come up with is the following:
>
>From the IP address one can determine the remote cluster decnet node name
>using a table lookup.
>
>One could then use rsh or equivalent to the remote node to get the output of
>MULTINET SHOW/CONNECTIONS=PID
>and search that list for the port number to obtain the owning process id.
>
>One could then search the output of
>SHOW USERS/FULL/NODE=whatever
>for the process id and obtain the associated username.
>
>But that's gross :-)
>
>Thanks for whatever help you can provide.
>
>Selden
>
>
>
>
>
>
>
>
>
>
>