Found the following after searching.
Quot
It has been said that some form of control can be implemented by modifying the netlogon file.
specify in your netlogon share:
root preexec = somecontrolscript
root preexec close = yes
and in somecontrolscript with the help of smbstatus you could check if there is any connection made by that user.
However there are some side effects, the unreliability of windows clients
(e.g. keeping open connections, to various services, blocked clients, etc.) could cause you lots of problems.
EndQuot
Anyone who has sucessfully implemented this method ?