[Samba] Samba loggin ti MySQL

mauricio at solucioninformatica.com mauricio at solucioninformatica.com
Wed Feb 19 19:20:46 GMT 2003


Hi people, I'm running samba as PDC, and I'm building an aplication that
store to a MySql database de date and time, user name, and hosts of the
user that log in. When the user log out then I store the same info to
record the total time spent per session by an user. I use a little C
program made by my self to talk to MySql, and call this like that:

[netlogon]
   comment = Network Logon Service
   path = /var/log/samba/logon
        public = no
        browsable = no
   writable = no
   share modes = no
        preexec = /home/mtellez/registra_sesion %u %m %S

but when an user log in and I look at the database I see from 1 to 3
fields per user. why? Is a better way to do this? Thanks in advance.

--
Mauricio Tellez


More information about the samba mailing list