[Samba] SAMBA CUSTOM LOGGING

Cyber Core cybercorecentre at gmail.com
Mon Feb 15 11:26:06 MST 2010


Hi,

I wonder if anybody made patches for samba to do custom logging. I
want to do auditing in this format

|DATE TIME| |Client IP address| |Username| |Share|

and divide the logins to two parts eg.:

/var/log/samba/logins-success.log
/var/log/samba/logins-failed.log

I don't care about the file transfers. If anyone could give me a patch
for samba-3.4.5 or for samba-3.2.5 that would be greatly appreciated.
I was reading this article
http://www.linuxjournal.com/article/7251?page=0,1 but the source code
completely changed since then and I have no
idea why do they use overcomplicated macros instead of a debug( int
level, char *msg, char *logfile) function.


Thanks,

Jax


More information about the samba mailing list