[Samba] the process when client joins and logs off....

John Benedetto jbenedet at unm.edu
Fri Dec 13 19:49:00 GMT 2002

--On Friday, December 13, 2002 6:59 PM +0530 kdmprasad at netindial.com wrote:

> hello,
> can any one help me with some details pls.
> i was looking for the process(the internals)when a client logs in to
> samba(configured as a PDC).
> and the same questions what happens when a client logs off.(do the PDC
> know abt this?).
> iam keen in to these details,since i want to insert in to the source
> code of samba,a small code by myself,to have capture the list of
> clients which are joining the PDC and leaving the PDC.
> first i want to have a file(say filename is logged-in)when a client
> log in PDC.then when a client logs off(will samba know abt this at
> all?)i want to remove the IP entry from the same file(logged-in).
> so that i can have a list of IP's who r currently active in samba.
> suppose at an instant if i want to find who r all the clients who
> logged in to PDC,i must be able to identify from the same file.

I thought that the "smbstatus" command would display the information you 
are asking for (who is logged on, what files they have open).  Perhaps you 
should look at the source for THIS command to figure out some of what you 
want to know.

- John

> (usually in /var/logs/ i have files named log.<netbios-name>)
> but these r files when client logs on...and doesn't leave even though
> the client switches off)....
> pls help me at this point....
> thanks in advance....
> prasad

More information about the samba mailing list