patch for logon time on samba3.0 alpha22

Jianliang Lu j.lu at tiesse.com
Thu Mar 20 07:59:29 GMT 2003


> On Thu, 2003-03-20 at 01:38, Jianliang Lu wrote:
> > Hi,
> > I've patched the samba3.0 alpha22 for logon_time, now the user's logon 
time 
> > is updated when he logs on successfully.
> > In attachment is the patch.
> 
> Does NT do this only for file-share connects?  Or also for Domain
> logons?
> 
> If domain logons also trigger it, then the correct place is
> 'auth/auth_sam.c'.  But watch out, we probably need an option to disable
> this, as in some PDC/BDC setups, it could entail an expensive LDAP
> update over a WAN.
> 
> But nice work - it's the kind of detail I've been meaning to catch up on
> for a while.
> 
> Andrew Bartlett
> 

Yes, the first time I also put the patch on the auth/auth_sam.c, but I have 
seen that you update the logon time using utmp when the session is 
estabilished. The patch works for Domain logons.

Jianliang Lu
Tiesse s.p.a.
j.lu at tiesse.com
> -- 
> Andrew Bartlett                                 abartlet at pcug.org.au
> Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
> Student Network Administrator, Hawker College   abartlet at hawkerc.net
> http://samba.org     http://build.samba.org     http://hawkerc.net



Jianliang Lu
TieSse s.p.a.
j.lu at tiesse.com
luj at libero.it


More information about the samba-technical mailing list