[Samba] Audit Trail/Logging For Network Logons and Logoffs

Andrew Bartlett abartlet at samba.org
Tue Mar 1 23:09:12 GMT 2005


On Fri, 2005-02-25 at 12:51 -0700, Gene Cooper wrote:
> Hi Folks,
> 
> I have searched the archives and the web for this issue, but I haven't found
> an answer.
> 
> I need to be able to log or audit the network access of our network users.
> This information needs to be used in conjuction with a time and attendance
> punch clock.
> 
> I have seen much discussion of using preexec and postexec for obtaining a
> network access log.  However, my testing has shown this as unreliable.  It
> seems Windows logs in and logs out at (nearly) random and the collected
> information seems useless as I haven't discovered a useful way to collect or
> parse the collected information.  I have tested on various shares as well. 

The best you will get is the utmp information, as this is more accurate
than the per-share info (due to multiple users of a given share).

I've long proposed to implement 'session exec' scripts for this purpose,
but never got around to it (and I don't do Samba3 any more).

However, if you read the discussion that occurred last year on
'preventing multiple simultaneous logons', you will see why this is so,
so hard to get right.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20050302/73217976/attachment.bin


More information about the samba mailing list