[Samba] Logging logins with preexec and Samba/LDAP

Julian Pilfold-Bagwell jpb at bordengrammar.kent.sch.uk
Mon Oct 1 12:22:25 GMT 2007

Hi all,

I had the following line in my smb.conf with which to log access to the 
home share when users logged in:

preexec = /bin/echo \"%u logged in to %m at %T\"  >> 

Since updating to LDAP however, it's stopped working and I suspect that smbldap cant handle the % substitutions for user, machine and time. Has anyone else run into this problem? If so, any help with the solution would be handy.


Julian Pilfold-Bagwell,
Network Manager,
Borden Grammar School,
ME10 1EY.

Tel: 01795 424192

More information about the samba mailing list