David Tremewen
2002-Nov-10 06:19 UTC
[Samba] delay in utmpx entry when users logs out of samba domain
Hi, I'm using the system accounting functionallity of Samba 2.2.6. Everything is working fine and dandy except that there is a lag between when a user logs out of a Windos 2000 Domain member, the 'who' command still lists the user as logged on for the next 20 - 30 seconds. Does anyone know what causes this? Can I increase the frequency of utmpx updates? Can someone point me to an overview of how utmp works with samba? Thanks, Dave Tremewen http://careers.yahoo.com.au - Yahoo! Careers - 1,000's of jobs waiting online for you!
Andrew Bartlett
2002-Nov-10 09:10 UTC
[Samba] delay in utmpx entry when users logs out of samba domain
On Sun, 2002-11-10 at 17:18, David Tremewen wrote:> Hi, > I'm using the system accounting functionallity of > Samba 2.2.6. Everything is working fine and dandy > except that there is a lag between when a user logs > out of a Windos 2000 Domain member, the 'who' command > still lists the user as logged on for the next 20 - 30 > seconds. > Does anyone know what causes this? Can I increase the > frequency of utmpx updates? Can someone point me to > an overview of how utmp works with samba? > Thanks, > Dave TremewenThe utmp entries are updated when the client sends the SMBulogoffX message, or when the client disconnects the TCP/IP stream. We cannot update these records until that time, as the client has not yet logged off, and could still access resources. Note that the utmp entires are maintained by the connection for file-sharing, not by the 'domain' logon/logoff. I have found that with WinNT, it keeps this vuid alive for this length of time after the last file-share is disconnected. (I'll guess that actually disconnecting sessions and calling SMBulogoffX is done in some internal NT idle loop, rather than activly on share disconnection). Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20021110/dc3bc66f/attachment.bin
Apparently Analagous Threads
- [openssh-portable] utmpx and ut_name
- utmpx bug in openssh-2.1.0p2 using Solaris 8
- configure: sense of --enable-utmpx test et al. reversed
- OpenSSH: Solaris login and utmpx
- [Bug 378] New: sshd does not update utmp/utmpx records correctly when "UseLogin" feature on