[Samba] Updating sambaLogonTime when user logs in
Carlos Eduardo Pedroza Santiviago
carlos at prognus.com.br
Wed Jan 4 13:44:02 GMT 2006
I've made a quick and dirty Samba config. to update the sambaLogonTime
timestamp when user logs in (LDAP backend).
Here, i have an specific share that all users connect when they log in,
besides the netlogon. However i think you can use the netlogon to modify
it too (maybe add some verification in case of "Guest" connects, which
is left to you).
Basically, you have to add:
root preexec = /usr/bin/updateLogonTime.sh "%u"
/usr/bin/ldapctl YOURDOMAIN replace $1 sambaLogonTime "$TIMESTAMP"
ldapctl is a fucking awesome tool i found while surfing around. You can
grab it here:
In some organizations, the sambaLogonTime is required to met their
Of course, other modifications could be done as well.
Carlos Eduardo Pedroza Santiviago - <carlos at prognus.com.br>
More information about the samba