Getting the list of logged-on user on remote PC

David Barth dbarth at
Thu Oct 7 14:35:56 GMT 2004

Eric Leblond wrote:

>To do so, all that remains to do is a C function that runs on our Linux
>server and does :
>Let A be the IP of a workstation, get the name(s) of user(s) logged-on
>to A.
>Microsoft internal protocol are far from being our speciality, so we're
>looking for the direction to be taken to write such a function.
>Could someone point us to documentation describing method or library
>able to do such a thing ?
the 'net' command and the libsmclient should contain working code for 
doing this. Look around the 'net session' manpage and code.

David Barth                | Le 19 octobre dès 9h00 au Bristol,
Responsable du Département | présentation des enjeux de l'indus
Infrastructure & Réseau    | trialisation Open Source, par IDC
Tél +33 (0) 1 44 42 00 00  | IDEALX et Novell.


More information about the samba-technical mailing list